OFFSET
2,1
COMMENTS
a(1) is not defined because there is no prime number smaller than 2.
LINKS
Lei Zhou, Table of n, a(n) for n = 2..10000
EXAMPLE
n = 2, prime(2) = 3, 3^2 - prime(1)^2 = 5; so a(2) = 5;
n = 3, prime(3) = 5, 5^2 - prime(1)^2 = 21 = 3*7; 5^2 - prime(2)^2 = 16 = 2^4; Min(7, 2) = 2, so a(3) = 2.
MAPLE
A210487 := proc(n)
local p, k, pk, a ;
a := ithprime(n)+ithprime(n-1) ;
p := ithprime(n) ;
for k from 1 to n-1 do
kp := ithprime(k) ;
a := min(a, %) ;
end do:
return a ;
end proc: # R. J. Mathar, Apr 17 2013
MATHEMATICA
Table[Min[Table[Last[FactorInteger[Prime[i]^2 - Prime[j]^2]][[1]], {j, 1, i - 1}]], {i, 2, 87}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Lei Zhou, Jan 23 2013
STATUS
approved