login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A275991
a(n) = prime(composite(n)) - prime(n).
0
5, 10, 14, 16, 18, 24, 26, 28, 30, 32, 40, 36, 38, 46, 50, 48, 44, 46, 46, 60, 64, 60, 66, 62, 66, 66, 70, 74, 84, 84, 72, 92, 90, 90, 84, 88, 94, 94, 96, 96, 92, 100, 102, 114, 114, 114, 106, 114, 120, 120, 126, 134, 138, 132, 132, 134, 140, 148, 144, 152, 156, 150
OFFSET
1,1
FORMULA
a(n) = A000040(A002808(n)) - A000040(n) = A088982(n) - A000040(n).
EXAMPLE
For n=3, prime(composite(3)) = 19, and prime(3) = 5, therefore a(3) = 19 - 5 = 14.
MATHEMATICA
Table[Prime[Composite(n)] - Prime[n], {n, 1, 100}]
CROSSREFS
Cf. A088982.
Sequence in context: A164889 A173553 A226153 * A313452 A023981 A313453
KEYWORD
nonn
AUTHOR
Terry D. Grant, Aug 15 2016
STATUS
approved