reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
The term "emirp" was coined by the American mathematician Jeremiah Farrell (b. 1937-2022). - Amiram Eldar, Jun 11 2021
approved
editing
Chris K. Caldwell, The Prime Glossary, <a href="httphttps://primes.utmt5k.eduorg/glossary/page.php?sort=emirp
(MAGMAMagma) [ n : n in [1..1194] | n ne rev and IsPrime(n) and IsPrime(rev) where rev is Seqint(Reverse(Intseq(n))) ]; // Sergei Haller (sergei(AT)sergei-haller.de), Dec 21 2006
proposed
approved
editing
proposed
from sympy import isprime, nextprime
from sympy import isprime, nextprime
p = nextprime(start-1)
while p <= end:
revp s = int(str(p)[::-1])
if s[0] in "24568":
p = nextprime((int(s[0])+1)*10**(len(s)-1)); continue
revp = int(s[::-1])
if p != revp and isprime(revp): yield p
p = nextprime(p)
print(list(emirps(end=1201))) # Michael S. Branicky, Jan 24 2021, updated Jul 28 2022
approved
editing