|
|
A064278
|
|
Numbers n such that n! + prime(n) is prime.
|
|
7
|
|
|
1, 2, 3, 4, 5, 6, 9, 11, 17, 18, 25, 31, 40, 96, 174, 193, 204, 269, 523, 650, 659, 797, 1437, 1862, 2515, 4983, 5557
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
The numbers corresponding to 2515 and 4983 are probable primes. [Farideh Firoozbakht, Oct 15 2009]
|
|
LINKS
|
|
|
EXAMPLE
|
n=5: 5! = 120 and prime(5) = 11, 120+11 = 131.
6 is listed because 6!+prime(6) = 720+13 = 733 is prime.
|
|
MATHEMATICA
|
Do[ If[ PrimeQ[ n! + Prime[ n ] ], Print[ n ] ], {n, 1, 700} ]
|
|
PROG
|
(PARI) for(n=1, 100, if (isprime(n!+prime(n)), print1(n, ", ")))
(Magma) [n: n in [1..200] | IsPrime(Factorial(n)+ NthPrime(n))]; // Vincenzo Librandi, Mar 05 2015
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
More terms from John Sillcox (JMS21187(AT)aol.com), Apr 05 2003
|
|
STATUS
|
approved
|
|
|
|