You are viewing a single comment's thread. Return to all comments →
In Ruby 1.9 there is a Prime class you can use to generate prime numbers.
request 'prime' Prime.take(10) # => [2, 3, 5, 7, 11, 13, 17, 19, 23, 29]
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #7: 10001st prime
You are viewing a single comment's thread. Return to all comments →
In Ruby 1.9 there is a Prime class you can use to generate prime numbers.