Module: JobInterview::Primes

Included in:
Answer
Defined in:
lib/job_interview/primes.rb

Instance Method Summary collapse

Instance Method Details

#primes(n) ⇒ Object



6
7
8
# File 'lib/job_interview/primes.rb', line 6

def primes(n)
  Prime.each.take(n)
end