(11C) Random Prime Number Generator
|
10-21-2018, 05:20 PM
(This post was last modified: 10-21-2018 05:21 PM by Dieter.)
Post: #9
|
|||
|
|||
RE: (11C) Random Prime Number Generator
(10-21-2018 01:31 PM)Albert Chan Wrote: Trivia: if I am betting for a number (< 10000) with this random prime generator, I'd pick 9587 To be honest, I have no idea what you want to say here – ?!? How is this related to this thread's subject? (10-21-2018 01:31 PM)Albert Chan Wrote: Update: without prime table, a simple way is keep picking random number until it is prime. Sure, this also is the idea behind Gamo's original program. Generate an odd random integer (here within the wrong range, though) and check if it's prime. If not, try another one. Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)