Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/Repunit-primes/Python/repunit-primes.py
Normal file
3
Task/Repunit-primes/Python/repunit-primes.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
from sympy import isprime
|
||||
for b in range(2, 17):
|
||||
print(b, [n for n in range(2, 1001) if isprime(n) and isprime(int('1'*n, base=b))])
|
||||
Loading…
Add table
Add a link
Reference in a new issue