Computer Science, asked by bhowmickshrestha1, 1 month ago

Write a class that find all prime palindromes between two given numbers a and b. Accept the values for a and b from the user in function main(). Use two function in your class, boolean isPrime(int) for check number is prime or not, int isPalindrome(int) to check number is palindrome or not.​

Answers

Answered by amanp3252
0

Answer:

hi

Explanation:

good morning to all the best regards David

Answered by 10thguruclass
0

Answer:

A palindromic prime (sometimes called a palprime) is a prime number that is also a palindromic number.

Given a number n, print all palindromic primes smaller than or equal to n. For example, If n is 10, the output should be “2, 3, 5, 7′. And if n is 20, the output should be “2, 3, 5, 7, 11′.

Idea is to generate all prime numbers smaller than or equal to given number n and checking every prime number whether it is palindromic or not.

Similar questions