powered by
n1
n2
twinPrimes(n1, n2)
n1 <= n2<="" code="">.=>
nx2
n
twinPrimes
Primes
diff
In double precision arithmetic integers are represented exactly only up to 2^53 - 1, therefore this is the maximal allowed value.
twinPrimes(1e6+1, 1e6+1001)
Run the code above in your browser using DataLab