OFFSET
1,2
COMMENTS
A175194(n) = a(n)!.
LINKS
Michael De Vlieger,Table of n, a(n) for n = 1..10000
Michael De Vlieger,First positions of values and records in a(n).
EXAMPLE
FromMichael De Vlieger,Nov 24 2017: (Start)
Records and their indices in a(n):
i n a(n)
--------------------
1 1 1
2 2 2
3 4 3
4 8 4
5 29 5
6 42 9
7 233 10
8 254 42
9 4508 49
10 7003 124
11 7385 276
12 60650 311
13 97146 542
(End)
MATHEMATICA
Fold[Append[#1, SelectFirst[Range[12], Function[k, PrimeQ[Prime[#2] + k!]]]] &, {1}, Range[2, 105]] (*Michael De Vlieger,Nov 24 2017 *)
PROG
(PARI) a(n) = {my(k = 1, p = prime(n)); while (!isprime(p + k!), k++); k; } \\Michel Marcus,Nov 25 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet,Mar 01 2010
EXTENSIONS
Extended byRay Chandler,Mar 04 2010
STATUS
approved