Post Reply 
(11C) Random Prime Number Generator
10-21-2018, 01:52 PM (This post was last modified: 10-21-2018 02:39 PM by John Keith.)
Post: #6
RE: (11C) Random Prime Number Generator
(10-21-2018 01:31 PM)Albert Chan Wrote:  (* Mathematica: primes below 10000 (1229 in total), all equally likely *)

Prime[Random[Integer, {1, 1229}]]

Or on the HP Prime (pun intended):

ithprime(rand(1229)+1)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(11C) Random Prime Number Generator - Gamo - 10-20-2018, 01:08 PM
RE: (11C) Random Prime Number Generator - John Keith - 10-21-2018 01:52 PM



User(s) browsing this thread: 2 Guest(s)