OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
select(t -> isprime(24*t-1) and isprime(24*t+1), [$1..1000]); # Robert Israel, Feb 11 2018
MATHEMATICA
q=24; lst={}; Do[r=n*q; If[PrimeQ[r-1]&&PrimeQ[r+1], AppendTo[lst, n]], {n, 1, 10^3}]; lst (* Vladimir Joseph Stephan Orlovsky, Aug 07 2008 *)
Select[Range[600], PrimeQ[24 # - 1] && PrimeQ[24 # + 1] &] (* Vincenzo Librandi, Feb 12 2018 *)
PROG
(PARI) isok(k) = isprime(24*k-1) && isprime(24*k+1); \\ Michel Marcus, Feb 12 2018
(Magma) [n: n in [1..600] | IsPrime(24*n+1) and IsPrime(24*n-1)] // Vincenzo Librandi, Feb 12 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Feb 23 2008
STATUS
approved