from sympy import pi, isprime M = 1000 digits = "3" + str(pi.evalf(M+1))[2:] for i in range(1, M+1): n = int(digits[:i]) if isprime(n): print(n) This looks at numbers formed from the first digit up to the thousandth digit in the representation of π. The only other...
Installing collected packages: GMPY2, mpmath, SymPy Running setup.py install for GMPY2 ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-RZJhrv/GMPY2/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace...