challenge - prime numbers where sum of squared digits of prime number is also prime
|
01-06-2018, 05:46 PM
(This post was last modified: 01-07-2018 03:05 PM by wawa.)
Post: #12
|
|||
|
|||
RE: challenge - prime numbers where sum ...
Here is my program for the DM42/Free42/HP42s.
The DM42 gives the answer for 100000 in 4 minutes. Type the limit in X, the program CHALNG returns the number of such primes in X and the last prime found with that property in Y. Ex: 100000 -> X:1818 and Y: 99971 1000 -> X:53 and Y:997 Edit : On the true hp42s, the 1000 chalenge takes 8 minutes to complete. The 100000 is out of reach in a reasonable time. Code: 00 { 239-Byte Prgm } |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)