login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A309249 Primes p such that p * (product of digits of p) - 2 is prime. 2
2, 3, 5, 7, 13, 73, 113, 173, 193, 197, 359, 373, 937, 1117, 1153, 1531, 1571, 1597, 1777, 1951, 1979, 3119, 3313, 3517, 3539, 3557, 3571, 5119, 5399, 5591, 5779, 7159, 7177, 7351, 7393, 7573, 7757, 7793, 7933, 7951, 9133, 9511, 9533, 9931, 9973, 11119, 11131 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Except for 2, a subset of A030096. - Robert Israel, Jul 18 2019
Primes with zero as a digit are excluded. - Harvey P. Dale, Jan 02 2020
LINKS
EXAMPLE
2 is in the sequence because 2*(2) - 2 = 2 (prime);
359 is in the sequence because 359*(3*5*9) - 2 = 48463 (prime).
MATHEMATICA
ppd2Q[n_]:=Module[{c=n Times@@IntegerDigits[n]-2}, c>0&&PrimeQ[c]]; Select[ Prime[Range[1500]], ppd2Q] (* Harvey P. Dale, Jan 02 2020 *)
PROG
(SageMath) P = Primes(); [ P.unrank(p) for p in range(1000) if is_prime( P.unrank(p) * prod([int(i) for i in str(P.unrank(p)) ] ) - 2 )]
CROSSREFS
Sequence in context: A055694 A249797 A346686 * A294727 A348352 A007311
KEYWORD
nonn,base
AUTHOR
Hauke Löffler, Jul 18 2019
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 07:35 EDT 2024. Contains 371782 sequences. (Running on oeis4.)