|
|
A257864
|
|
Numbers n such that n!! - 2^7 is prime.
|
|
2
|
|
|
11, 13, 21, 47, 59, 77, 109, 129, 155, 163, 245, 337, 511, 1417, 3013, 3757, 4989, 8977, 12479, 12869
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
|
|
LINKS
|
|
|
MATHEMATICA
|
Select[Range[0, 50000], #!! - 128 > 0 && PrimeQ[#!! - 128] &]
|
|
PROG
|
(Python)
from gmpy2 import is_prime, mpz
A257864_list, g, h = [], mpz(105), mpz(128)
for i in range(9, 10**5, 2):
....g *= i
....if is_prime(g-h):
(Perl)
use ntheory ":all"; use Math::GMPz;
sub mf2 { my($n, $P)=(shift, Math::GMPz->new(1)); $P *= $n-($_<<1) for 0..($n-1)>>1; $P; }
for (1..100000) { say if is_prob_prime(mf2($_)-128) } # Dana Jacobsen, May 13 2015
|
|
CROSSREFS
|
Cf. A080778, A076185, A076186, A076188, A076189, A076190, A076193, A076194, A076195, A076196, A076197 (other forms of n!!+2^k)
|
|
KEYWORD
|
nonn,hard,more
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|