Super Primes
What are Super Primes?
- A Super Prime is a prime number with the additional interesting property that as each digit is removed from the right the number which remains is a prime.
Instructions
The following is a list of Super Primes of length 4:
2333
2339
2393
2399
2939
3119
3137
3733
3739
3793
3797
5939
7193
7331
7333
7393
Instructions
- Write a program that prints all super primes of length 6
- Your output should contain each Super Prime on a line each.
- Output sould be in ascending order.
- No other output should be produced by your program other than the numbers.
If you can use File I/O, output your answer to "primes.txt"