Sorry, I made a little mistake in the example, I forgot "$debug" argument in the call of the functions !!! ((=:
I also forgot to say that "primes" function could be improved based on the hard coded primes table. I'll try to do it in a near future... if none of you does !!! (=;
------
<?PHP...