Computer Science, asked by CopyThat, 1 month ago

Write a JAVA program to enter a number and check as a palindrome as well as a prime number.

Answers

Answered by rajputpradeep074
0

Palindromic Prime Number in JAVA

Get the number to check for PalPrime Number.

Hold the number in temporary variable.

Using loop find if it is prime or not.

Check if the number is Palindrome or not.

If the number is both prime and

palindrome print "PalPrime Number"

If not print "Not a PalPrime Number

Similar questions