shortened prime.rb