login
Primes not in A138980.
1

%I #5 Feb 05 2014 20:18:46

%S 2,59,163,283,311,313,383,461,541,587,619,653,857,991,1033,1051,1069,

%T 1153,1277,1367,1511,1613,1693,1933,2129,2179,2287,2437,2473,2521,

%U 2663,2731,2957,3109,3167,3169,3251,3343,3449,3581,3631,3691,3907,3919,4049,4451,4639,4663,4751,4793,5051,5099,5227,5303,5309,5381,5387,5449,5521,5701,6043,6091,6247,6361,6451,6823,7309,7393,7411,7489,7541,7547,7589,7759,7901,8377,8501,8513,9227,9281,9311,9769

%N Primes not in A138980.

%C Except for the first term, the sequences A049561 and A138980 both consist of all odd primes except for 59, up to p=163 which is in A049561 but not in A138980.

%o (PARI) s=a=1;for(i=1,10^3,/*print1(","a);*/ while(isprime( s+a=nextprime(a+1) ),print1(a","));s+=a) /*using instead the commented-out print() command yields the sequence A138980.*/

%Y Cf. A138980, A138981.

%K nonn

%O 1,1

%A _Leroy Quet_ and _M. F. Hasler_, Apr 05 2008