Name

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")

   

Authors

Copyright (C) 2009 - 2010 - DIGITEO - Michael Baudin