I am learning Ruby and doing some math stuff. One of the things I want to do is generate prime numbers.
I want to generate the first ten prime numbers and the first ten
require 'prime' Prime.first(10) # => [2, 3, 5, 7, 11, 13, 17, 19, 23, 29]