Wipro Interview Question

Write a code for Prime number in a row, palindrome and many more.