login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A036930 Smallest n-digit prime containing only digits 1 and 3, or 0 if no such prime exists. 1
3, 11, 113, 3313, 11113, 113111, 1111333, 11111131, 111111113, 1111113313, 11111111113, 111111133333, 1111111111333, 11111111113133, 111111111113113, 1111111111313131, 11111111111131333, 111111111111111131 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Jinyuan Wang, Table of n, a(n) for n = 1..500

MATHEMATICA

Flatten[Table[Select[FromDigits/@Tuples[{1, 3}, n], PrimeQ, 1], {n, 18}]] (* Harvey P. Dale, Jul 23 2012 *)

CROSSREFS

Cf. A020451, A036229, A036303.

Sequence in context: A131546 A275338 A068693 * A198085 A319749 A209107

Adjacent sequences:  A036927 A036928 A036929 * A036931 A036932 A036933

KEYWORD

nonn,base

AUTHOR

Patrick De Geest, Jan 04 1999

EXTENSIONS

Corrected by Harvey P. Dale, Jul 23 2012

STATUS

approved

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 October 26 18:30 EDT 2021. Contains 348268 sequences. (Running on oeis4.)