OFFSET
1,3
LINKS
Pierre CAMI, Table of n, a(n) for n = 1..25000
MAPLE
A187562 := proc(n) local p, k; p := ithprime(n) ; for k from 0 do if isprime( p*(p-k)+1 ) then return k; end if; end do: end proc: # R. J. Mathar, Mar 13 2011
MATHEMATICA
Table[k = 0; While[! PrimeQ[Prime[n]*(Prime[n] - k) + 1], k++]; k, {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Mar 13 2011
STATUS
approved