OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
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
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Michel ten Voorde
STATUS
approved