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
def get_prime(number) (2..number).each do |no| if (2..no-1).all? {|num| no % num > 0} puts no end end end get_prime(100)