login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A037030
Numbers n such that 666*n + 1 is prime.
5
3, 5, 7, 10, 12, 16, 22, 23, 25, 26, 32, 35, 36, 38, 40, 46, 50, 51, 57, 58, 61, 63, 65, 67, 68, 71, 73, 77, 78, 80, 85, 87, 91, 98, 100, 102, 105, 107, 123, 137, 138, 140, 142, 143, 150, 155, 158, 161, 165, 166, 172, 177, 178, 180, 187, 190, 191, 192, 197, 200, 205
OFFSET
1,1
LINKS
MATHEMATICA
f[n_]:=666*n+1; lst={}; Do[p=f[n]; If[PrimeQ[p], AppendTo[lst, n]], {n, 0, 6!}]; lst (* Vladimir Joseph Stephan Orlovsky, Jul 02 2009 *)
Select[Range[3, 1000], PrimeQ[666 # + 1] &] (* Vincenzo Librandi, May 19 2014 *)
PROG
(Magma) [n: n in [1..1000] | IsPrime(666*n + 1)]; // Vincenzo Librandi, Nov 17 2010
(PARI) is(n)=isprime(666*n+1) \\ Charles R Greathouse IV, Feb 17 2017
CROSSREFS
Cf. A037029.
Sequence in context: A335408 A211266 A378365 * A277719 A251553 A075782
KEYWORD
nonn,easy
EXTENSIONS
More terms from Michel ten Voorde
STATUS
approved