OFFSET
1,1
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..10000
EXAMPLE
64 = 2^6, whose largest prime factor is 2, is in the sequence because between 64 and 67 (the next prime) there are 2 numbers, 65 and 66.
MATHEMATICA
Select[Range[10^5], NextPrime[#] - # == 1 + FactorInteger[#][[-1, 1]] &]
PROG
(PARI) gpf(n)=n=factor(n)[, 1]; n[#n]
is(n)=nextprime(n)-n==gpf(n)+1 \\ Charles R Greathouse IV, Jan 10 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Giovanni Resta, Jan 10 2014
STATUS
approved