Write a program BackwardPrimes.java that prompts user for a positive integer number x and displays x prime numbers whose reversal is also a
prime. Numbers 13, 31 and 157 are instances of such numbers. Following is a sample run of your program.
$ javac BackwardPrimes.java
$ java BackwardPrimes
Number of Primes? 15
13 17 31 37 71 73 79 97 107 113 149 157 167 179 199