number_powermod Number number_primes

Number >> Number > number_primecount

number_primecount

Returns the value of the prime-counting function.

Parameters

x :

a matrix of floating point integers, the points where to evaluate the function, must be positive

y :

a matrix of floating point integers, the function value

Description

The prime-counting function of x is equal to the number of prime numbers less than or equal to x.

Examples

x = 1:60;
y = number_primecount ( x );
plot(x,y,"bo")

Bibliography

http://en.wikipedia.org/wiki/Prime-counting_function

Authors

number_powermod Number number_primes