OFFSET
1,1
COMMENTS
A prime p has 10 as a primitive root iff the length of the period of the decimal expansion of 1/p is p-1.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
MATHEMATICA
test[p_] := MultiplicativeOrder[10, p]===p-1; Prime/@Select[Range[2, 2500], test[Prime[ # ]]&&test[Prime[ #+1]]&&test[Prime[ #+2]]&&!test[Prime[ #-1]]&&!test[Prime[ #+3]]&]
pr10Q[{a_, b_, c_, d_, e_}]:=Boole[PrimitiveRoot[#, 10]==10&/@{a, b, c, d, e}]=={0, 1, 1, 1, 0}; Select[Partition[Prime[Range[5000]], 5, 1], pr10Q][[;; , 2]] (* Harvey P. Dale, Oct 18 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jeff Burch, Mar 23 2001
EXTENSIONS
Edited by Dean Hickerson, Jun 17 2002
Offset corrected by Amiram Eldar, Oct 03 2021
STATUS
approved
