OFFSET
1,2
COMMENTS
The number of twin prime candidates remaining in the primorial(n)# interval after sieving with prime(n-1).
Conjecture: This number goes to infinity when n approaches infinity.
The interval in which to count twin prime candidates is to start at prime(n)+1 and to have the length of one primorial, that is to end at the number (n)# + prime(n).
The prime candidates occur in the process of identifying primes with the sieve of Eratosthenes. For each prime p used to identify composite numbers, a number of twin prime candidates are eliminated within the interval by one of its components being identified as composite. A twin prime candidate not eliminated when the process has advanced beyond the moment where its components are smaller than p^2 cannot be eliminated and is identified as a twin prime number.
The number of eliminations of twin prime candidates within the primorial interval that can be attributed to sieving with the prime(n) is given by A121406.
Conjecture: The number of twin prime candidates remaining in the primorial(n)# interval after sieving with the prime(n) is given by A059861.This number goes to infinity when (n) approaches infinity.
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..300
Dennis R. Martin, On the Infinite Series Characterizing the Elimination of Twin Prime Candidates [Cached copy, with permission of the author]
FORMULA
EXAMPLE
First formula, for n=4, a(4) = 7*1*(3-2)*(5-2) = 21.
Second formula, for n=4, a(4) = (1*(3-2)*(5-2)*(7-2)) + (3*2) = 21.
MATHEMATICA
Join[{0, 2}, Rest[#]*FoldList[Times, Most[#] - 2] & [Prime[Range[2, 20]]]] (* Paolo Xausa, Dec 18 2025 *)
PROG
(PARI) a(n) = if (n==1, 0, if (n==2, 2, prime(n)*prod(i=2, n-1, prime(i) - 2))); \\ Michel Marcus, Dec 10 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Leif Nordqvist, Nov 27 2025
STATUS
approved
