login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A097944 Number of digits in n-th prime. 4
1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 (list; graph; refs; listen; history; internal format)
OFFSET

1,5

COMMENTS

For primes p <= n sum(a(n)) -> n/2 and n-> inf.

FORMULA

a(n) ~ (log n + log log n)/(log 10) + O(1).

EXAMPLE

The first 4 primes are 2,3,5,7. These are 1 digit numbers so the first 4 entries in the table are 1's.

MATHEMATICA

a[n_]:=StringLength[ToString[Prime[n]]]; [From Vladimir Orlovsky (4vladimir(AT)gmail.com), Dec 03 2008]

PROG

(PARI) a(n)=#Str(prime(n))

CROSSREFS

Sequence in context: A077429 A204553 A060417 * A037203 A032556 A110592

Adjacent sequences:  A097941 A097942 A097943 * A097945 A097946 A097947

KEYWORD

nonn,base

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Sep 05 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 18:47 EST 2012. Contains 205663 sequences.