Sha256: 84d007d29f245632fd90fea25f5b770fb5d07ff4d19b5385634410e2558a74a4
Contents?: true
Size: 293 Bytes
Versions: 5
Compression:
Stored size: 293 Bytes
Contents
#!/usr/bin/env ruby good = 0 bad = 0 for cnt in 1..200 if `bin/primes 2000 -H localhost,localhost` =~ /303\sprimes\sfound/ good += 1 putc '.' else bad += 1 putc 'x' end puts " #{cnt}" if (cnt % 50) == 0 STDOUT.flush end puts puts "good: #{good}" puts "bad: #{bad}"
Version data entries
5 entries across 5 versions & 1 rubygems