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!)
A069749 Number of primes less than 10^n containing only the digits 2 and 3 (A020458). 0
2, 3, 5, 7, 11, 18, 31, 44, 83, 135, 239, 436, 818, 1436, 2773, 4695, 9244, 17022, 32948, 58158, 116040, 214188 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(22) / A006880(22) = 214188 / 201467286689315906290 =~ 10^-15. But out of the 2^22 candidates for primes, ~5% are.
LINKS
MATHEMATICA
s = 0; Do[k = 0; While[k < 2^n, k++; If[p = FromDigits[ PadLeft[ IntegerDigits[k, 2], n] + 2]; PrimeQ[p], s++ ]]; Print[s], {n, 1, 22}]
With[{c=Select[Flatten[Table[FromDigits/@Tuples[{2, 3}, n], {n, 22}]], PrimeQ]}, Table[Count[c, _?(#<10^i&)], {i, 22}]] (* Harvey P. Dale, Mar 18 2016 *)
CROSSREFS
Sequence in context: A293637 A284250 A291660 * A081889 A078139 A347337
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Apr 22 2002
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 25 05:56 EDT 2024. Contains 371964 sequences. (Running on oeis4.)