OFFSET
1,2
EXAMPLE
83+84 = 167 is prime, 83 is prime, 84 = 2^2*3*7. 83+2+2+3+7 = 97 is prime, hence 83 is a term.
95+96 = 191 is prime. 95 = 5*19; 96 = 2^5*3. 5+19+2+2+2+2+2+3 = 37 is prime, hence 95 is a term.
MATHEMATICA
fn[{a_, b_}]:=a*b; Select[Range[771], PrimeQ[#+(#+1)]&&PrimeQ[Total[fn/@FactorInteger[#]]+Total[fn/@FactorInteger[#+1]]]&] (* James C. McMahon, Aug 19 2024 *)
PROG
(Magma) [1] cat [ n: n in [2..700] | IsPrime(2*n+1) and IsPrime(&+[ &+[ k[1]*k[2]: k in Factorization(h) ]: h in [n, n+1] ] ) ]; /* Klaus Brockhaus, Apr 17 2007 */
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot, Apr 16 2007
EXTENSIONS
Edited, corrected and extended by Klaus Brockhaus, Apr 17 2007
STATUS
approved