login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A154660
Numbers n such that n!+37 and abs(n!-37) are primes.
5
3, 4, 5, 6, 7, 8
OFFSET
1,1
COMMENTS
5!-37=83;5!+37=157,...
MATHEMATICA
lst={}; a=37; Do[If[PrimeQ[n!-a]&&PrimeQ[n!+a], AppendTo[lst, n]], {n, 2*5!}]; lst
CROSSREFS
Sequence in context: A134483 A121151 A088243 * A004492 A360663 A333914
KEYWORD
nonn,full,fini
AUTHOR
EXTENSIONS
Name corrected by Chai Wah Wu, Oct 18 2020
STATUS
approved