Extracted output to the first.rb script
Updated code to output the first n primes.
Calculates the upper limit required for the first n primes.
Output is returned as a string, rather than outputted directly to the terminal (makes testing easy!)