OFFSET
1,1
EXAMPLE
23 is a prime, so is (23-1)/2=11 and also 12*23+1=277, 59 is a prime, (59-1)/2=29 and 12*59+1=709, ...
MAPLE
ts_sgB_var_pras := proc(nmax) local i, tren, atek; tren := 0: for i from 1 to nmax do atek := numtheory[safeprime](i): if (atek > tren) then if (isprime(atek)='true' and isprime(6*atek+1)='true') then tren := atek: fi; fi; od; end: seq(ts_sgB_var_pras(i), i=1..3000);
MATHEMATICA
okQ[n_]:=PrimeQ[(n-1)/2]&&PrimeQ[12n+1]
Select[Prime[Range[5000]], okQ] (* Harvey P. Dale, Nov 21 2010 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jani Melik, Oct 02 2002
EXTENSIONS
More terms from Harvey P. Dale, Nov 21 2010
STATUS
approved