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

Version Path
jeremy-ruby-prof-0.6.1 test/prime1.rb
ruby-prof-0.5.2-mswin32 test/prime1.rb
ruby-prof-0.5.1-mswin32 test/prime1.rb
ruby-prof-0.5.0-mswin32 test/prime1.rb
ruby-prof-0.6.0 test/prime1.rb
ruby-prof-0.5.1 test/prime1.rb
ruby-prof-0.5.2 test/prime1.rb
ruby-prof-0.6.0-x86-mswin32-60 test/prime1.rb
ruby-prof-0.5.0 test/prime1.rb