OFFSET
1,1
EXAMPLE
a(1)=3 because (7^2 - 3^2)/2 - 1 = 19 and (7^2 - 3^2)/2 + 1 = 21 (21 is not prime),
a(2)=5 because (11^2 - 5^2)/2 - 1 = 47 and (11^2 - 5^2)/2 + 1 = 49 (49 is not prime),
a(3)=11 because (17^2 - 11^2)/2 - 1 = 83 and (17^2 - 11^2)/2 + 1 = 85 (85 is not prime), ...
MAPLE
ts_p2_20:=proc(n) local a, b, i, ans; ans := [ ]: for i from 2 to n do a := (ithprime(i+2)^(2)-ithprime(i)^(2))/2-1: b := (ithprime(i+2)^(2)-ithprime(i)^(2))/2+1: if not (isprime(a)=true and isprime(b)=true) then ans := [ op(ans), ithprime(i) ]: fi od; RETURN(ans) end: ts_p2_20(300);
CROSSREFS
KEYWORD
nonn
AUTHOR
Jani Melik, Aug 01 2007
STATUS
approved