OFFSET
1,1
COMMENTS
First differs from A095179 at a(31) = 103 since A095179(31) = 104 because 401 is prime but 301 = 7 * 43. - Alonso del Arte, Apr 12 2020
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..11018 (all terms < 10**5)
EXAMPLE
1234 is in the sequence because 2341 is prime.
MATHEMATICA
Select[Range[200], PrimeQ[FromDigits[RotateLeft[IntegerDigits[#]]]] &] (* Harvey P. Dale, Jun 06 2018 *)
PROG
(Python)
from sympy import isprime
def ok(n): s = str(n); return isprime(int(s[1:]+s[0]))
print([k for k in range(171) if ok(k)]) # Michael S. Branicky, May 08 2023
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Jason Earls, Mar 16 2005
STATUS
approved