OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Twin Primes.
MAPLE
q:= n-> (p-> isprime(p-2) or isprime(p+2))(ithprime(n)):
select(q, [$1..150])[]; # Alois P. Heinz, Apr 15 2020
MATHEMATICA
With[{p = PositionIndex[(#[[2]] - #[[1]] - 2) & /@ Partition[Prime[Range[150]], 2, 1]][0]}, Union[p, p + 1]] (* Amiram Eldar, Sep 06 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Apr 15 2020
STATUS
approved