-
Write a program to find largest prime number in the given list of numbers.
Sample Input:
8
2 4 6 8 81 9 5 3
Sample Output:
5
-
Write a program to print following pattern.
Sample Input:
253
Sample Output:
2
2 5
2 5 3
5
5 3
3
-
Input a string from the user and print the number of iterations it will take to make the string unique for each iteration we need to remove adjacent common characters from the string.
Sample Input:
aabccda
Sample Output:
2
-
Write a program to print following pattern.
Sample Input1:
3
Sample Output1:
* 2 3
* 5 *
7 * *
Sample Input2:
4
Sample Output2:
* 2 3 *
5 * 7 *
* * 11 *
13 * * *