OFFSET
1,1
COMMENTS
An observation on the distribution of:
(a(n) mod 10) == 1 or 3 or 5 or 7 or 9
Up to 10^4 there are 99, 168, 373, 154, 222
Up to 10^5 there are 957, 1400, 2818, 1346, 1792
Up to 10^6 there are 9344, 12420, 22393, 11325, 14426
Up to 10^7 there are 85861, 109663, 185718, 100314, 122166
Up to 10^8 there are 792654, 968615, 1593058, 896008, 1059557
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
Odd number 75 is a term, because 75 = 2*23 + 29 and 23, 29 are consecutive prime numbers.
MAPLE
P:= [seq(ithprime(i), i=1..100)]:
remove(isprime, map(`*`, P[1..-2], 2)+P[2..-1]); # Robert Israel, Feb 17 2020
MATHEMATICA
Select[Map[2 #1 + #2 & @@ # &, Partition[Prime@ Range@ 79, 2, 1]], CompositeQ] (* Michael De Vlieger, Jan 26 2020 *)
PROG
(PARI) forprime(p = 2, 500, c = 2*p + nextprime(p+1); if(!isprime(c), print(c", ")))
CROSSREFS
KEYWORD
nonn
AUTHOR
Dimitris Valianatos, Jan 26 2020
STATUS
approved