Skip to content

Instantly share code, notes, and snippets.

@tounan
Created November 2, 2019 13:16
Show Gist options
  • Save tounan/356e27d0200b8a2e796f78a1c8037113 to your computer and use it in GitHub Desktop.
Save tounan/356e27d0200b8a2e796f78a1c8037113 to your computer and use it in GitHub Desktop.
Computes the largest known prime up to now
from gmpy2 import mpz
mp = mpz('2') ** mpz('82589933') - mpz('1')
prime = str(mp)
open('prime82589933.txt', 'wt').write(prime)
exit(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment