Jump to content

Largest difference between adjacent primes: Difference between revisions

Line 324:
The maximum prime interval in primes up to 1000000000 is 282: for example at [436273009, 436273291].
The maximum prime interval in primes up to 10000000000 is 354: for example at [4302407359, 4302407713].
</pre>
=={{header|Mathematica}} / {{header|Wolfram Language}}==
<lang Mathematica>Max[-Subtract @@@
Partition[Most@NestWhileList[NextPrime, 2, # < 1000000 &], 2, 1]]</lang>
 
{{out}}<pre>
114
</pre>
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.