Anonymous user
Miller–Rabin primality test: Difference between revisions
→{{header|Crystal}}
Line 1,092:
struct Int; include Primes::MillerRabin end
def tm; t = Time.monotonic; yield; (Time.monotonic - t).total_seconds.round(6) end
# 10 digit prime
|