login
A353464
Characteristic function of greater twin primes: a(n) = 1 if both n and n-2 are primes, otherwise 0.
2
0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0
OFFSET
1
FORMULA
a(n) = A353463(n-2) = A010051(n) * A010051(n-2).
PROG
(PARI) A353464(n) = (isprime(n) && isprime(n-2));
CROSSREFS
Characteristic function of A006512.
Sequence in context: A179831 A094091 A080679 * A144193 A171387 A355450
KEYWORD
nonn
AUTHOR
Antti Karttunen, Apr 22 2022
STATUS
approved