Sha256: 0454332b66f1e4ec611a25f2ee01e1eef8e22828f4fc2bd3964ec330f5d93e46
Contents?: true
Size: 323 Bytes
Versions: 9
Compression:
Stored size: 323 Bytes
Contents
require 'prime2' require 'prime3' def run_primes length = 500 maxnum = 10000 # Create random numbers random_array = make_random_array(length, maxnum) # Find the primes primes = find_primes(random_array) # Find the largest primes largest = find_largest(primes) #puts "largest is #{largest}" end
Version data entries
9 entries across 9 versions & 2 rubygems