Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A117490
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A117490 Number of primes between n and n^2 (with n and n^2 excluded). +0
3
0, 1, 2, 4, 6, 8, 11, 14, 18, 21, 25, 29, 33, 38, 42, 48, 54, 59, 64, 70, 77, 84, 90, 96, 105, 113, 120, 128, 136, 144, 151, 161, 170, 180, 189, 199, 207, 216, 228, 239, 250, 261, 269, 281, 292, 305, 314, 327, 342, 352, 363, 378, 393, 405, 418, 429, 441, 458, 470 (list; graph; listen)
OFFSET

1,3

COMMENT

A famous Japanese mathematics book states that this sequence is nonzero (for n>1) if the Riemann Hypothesis is true, but this statement seems to be false.

FORMULA

a(n) = pi(n^2)-pi(n), cf. A000720.

EXAMPLE

For n=5: between 5+1 = 6 and 5^2-1 = 24 there are the following six primes: 7, 11, 13, 17, 19, 23.

MAPLE

P:=proc(n) local i, j, np; for i from 1 by 1 to n do np:=0; for j from i+1 by 1 to i^2-1 do if isprime(j) then np:=np+1; fi; od; print(np); od; end: P(100);

MATHEMATICA

f[n_] := PrimePi[n^2 - 1] - PrimePi[n]; Array[f, 59] (from Robert G. Wilson v (rgwv(at)rgwv.com), Apr 06 2006)

CROSSREFS

Cf. A014085, A060715, A117491.

Sequence in context: A092777 A006463 A060655 this_sequence A032514 A011858 A084627

Adjacent sequences: A117487 A117488 A117489 this_sequence A117491 A117492 A117493

KEYWORD

easy,nonn

AUTHOR

Paolo P. Lava & Giorgio Balzarotti (ppl(AT)spl.at), Mar 22 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified September 6 09:40 EDT 2008. Contains 143480 sequences.


AT&T Labs Research