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!)
A155088 Numbers n such that n and prime(n) contain prime digits only. 2
2, 3, 55, 332, 352, 375, 733, 3573, 3575, 7235, 22222, 22223, 22322, 252323, 252335, 253777, 255225, 372755, 372772, 522532, 523255, 525737, 2275325, 2275327, 2275337, 2277333, 2277337, 3325772, 27727257, 27727277, 27727732, 27737332, 27737722, 27737723 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Indices n such that A045532(n) is in A046034. [R. J. Mathar, May 05 2010]
LINKS
EXAMPLE
352 is in the sequence since 352 and prime(352) = 2377 use only prime digits (2, 3, 5, 7). For more examples see Links.
MATHEMATICA
pQ[n_] := Union[IntegerDigits@n, {2, 3, 5, 7}] == {2, 3, 5, 7}; Select[Range[10^5], pQ@# && pQ@Prime@# &] (* Giovanni Resta, Mar 11 2013 *)
Select[Flatten[Table[FromDigits/@Tuples[{2, 3, 5, 7}, n], {n, 8}]], AllTrue[ IntegerDigits[Prime[#]], PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jun 24 2015 *)
CROSSREFS
Sequence in context: A339920 A344732 A037424 * A072871 A041709 A361095
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Corrected (332, 352, 375 inserted) by R. J. Mathar, May 05 2010
a(11)-a(34) from Giovanni Resta, Mar 11 2013
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 March 3 13:27 EST 2024. Contains 370512 sequences. (Running on oeis4.)