numtheory(deprecated)/pi - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : numtheory(deprecated)/pi

numtheory(deprecated)

  

pi

  

number of primes less than or equal to

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

pi(n)

Parameters

n

-

expression, assumed to be of type integer

Description

• 

Important: The numtheory package has been deprecated.  Use the superseding command NumberTheory[PrimeCounting] instead.

• 

The function pi(n) computes the number of prime numbers less than or equal to the given integer n.

Examples

Important: The numtheory package has been deprecated.  Use the superseding command NumberTheory[PrimeCounting] instead.

withnumtheory:

pi10

4

(1)

pi100

25

(2)

pi1000

168

(3)

pi10000

1229

(4)

nopsselectisprime,`$`2..10000

1229

(5)

Li10000.0

1246.137216

(6)

10000.0ln10000.0

1085.736205

(7)

See Also

isprime

ithprime

Li

NumberTheory[PrimeCounting]

Pi

type[prime]