OFFSET

1,1

LINKS

Zak Seidov, Table of n, a(n) for n = 1..10000

EXAMPLE

a(1) = 2 because 2+2=4 is divisible by 2 (1st prime),

a(2) = 7 because 7+2=9 is divisible by 3 (2nd prime),

a(3) = 3 because 3+2=5 is divisible by 5 (3rd prime).

PROG

(PARI) a(n) = my(p=2); while ((p+2) % prime(n), p=nextprime(p+1)); p; \\ Michel Marcus, May 18 2020

CROSSREFS

KEYWORD

nonn

AUTHOR

Zak Seidov, May 18 2020

STATUS

approved