numtheory(deprecated)/pi - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

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.

> 

with⁡numtheory:

> 

pi⁡10

4

(1)
> 

pi⁡100

25

(2)
> 

pi⁡1000

168

(3)
> 

pi⁡10000

1229

(4)
> 

nops⁡select⁡isprime,`$`⁡2..10000

1229

(5)
> 

Li⁡10000.0

1246.137216

(6)
> 

10000.0ln⁡10000.0

1085.736205

(7)

See Also

isprime

ithprime

Li

NumberTheory[PrimeCounting]

Pi

type[prime]