login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Subsequence of primes in sequence b(n) = 2*prime(n) - prime(n+1) + 2 (A124115).
0

%I #3 Mar 30 2012 18:40:03

%S 3,3,5,5,11,11,17,17,19,29,41,41,43,59,71,79,83,101,101,107,107,101,

%T 127,137,131,149,163,179,173,191,191,197,227,227,229,239,233,269,281,

%U 281,311,311,347,347,349,353,379,383,401,419,431,439,443,461,461,457,499

%N Subsequence of primes in sequence b(n) = 2*prime(n) - prime(n+1) + 2 (A124115).

%o (PARI) {p=2;q=3;while(p<510,a=2*p-q+2;if(isprime(a),print1(a,","));p=q;q=nextprime(q+1))} - Klaus Brockhaus, Nov 28 2006

%Y Cf. A124115.

%K nonn

%O 1,1

%A _Giovanni Teofilatto_, Nov 28 2006

%E Corrected and extended by _Klaus Brockhaus_, Nov 28 2006