login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

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