login
This site is supported by donations to The OEIS Foundation.

 

Logo

Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing.
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A144046 Numbers n such that |n!-107| and |n!+107| are prime. 6

%I

%S 3,4,5,6,7,8,80

%N Numbers n such that |n!-107| and |n!+107| are prime.

%F 5!-107=13 and 5!+107=227, so 5 is a member.

%t lst={};a=107;Do[If[PrimeQ[n!-a]&&PrimeQ[n!+a],AppendTo[lst,n]],{n,0,20^2}];lst

%o (PARI) for(n=1,106,if(ispseudoprime(abs(n!-107))&&ispseudoprime(n!+107),print1(n", "))) \\ _Charles R Greathouse IV_, Oct 05 2011

%K nonn,fini,full

%O 1,1

%A _Vladimir Joseph Stephan Orlovsky_, Sep 08 2008

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 6 16:24 EST 2019. Contains 329808 sequences. (Running on oeis4.)