OFFSET
1,2
COMMENTS
Numbers n such that a(n) + 1 = a(n + 1) where the a(n)-th prime is not the smaller prime in a twin prime pair: 1, 3, 122, 267, 356, 362, 392, 403, 416, 446, 514, ....
Primes p(n) such that p is not -1 mod n for all prime p < p(n): 2, 3, 11, 31, 41, 59, 83, 97, 101, 109, 167, 191, 211, 277, 283, 313, 331, 367, 419,... Also primes p(n) such that p(n) <= A038700(n).
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
For n = 11, we see that the 14th prime (43), modulo 11 is 10, or -1, so a(11) = 14.
PROG
(PARI) a(n)=forstep(t=n-1, n^99, n, if(isprime(t), return(primepi(t)))) \\ Charles R Greathouse IV, Mar 17 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Irina Gerasimova, Apr 11 2013
STATUS
approved