prime.rb passes all 4 tests