OFFSET
1,2
COMMENTS
Numbers k such that 4*k - 1 is prime. - Michel Marcus, Dec 10 2015
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = (A002145(n) + 1)/4. - R. J. Mathar, Jun 07 2011
MATHEMATICA
lst={}; Do[p=4*n-1; If[PrimeQ[p], AppendTo[lst, n]], {n, 0, 10^3}]; lst (* Vladimir Joseph Stephan Orlovsky, Sep 10 2008 *)
(Select[Prime@ Range@ 120, Mod[#, 4] == 3 &] + 1)/4 (* or *) Select[Range@165, PrimeQ[4 # - 1] &] (* Michael De Vlieger, Dec 10 2015 *)
PROG
(Magma) [ (p+1)/4: p in PrimesUpTo(700) | p mod 4 eq 3 ]; // Klaus Brockhaus, Dec 22 2008
(PARI) isok(n) = isprime(4*n-1); \\ Michel Marcus, Dec 10 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Klaus Brockhaus, Dec 22 2008
STATUS
approved