Login   Register  
PHP Classes
elePHPant
Icontem

Is Prime

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Ahmad Retha
Name: Ahmad Retha <e-mail contact>
Packages: 3 Browse all classes by Ahmad Retha Browse all classes by
Country: United Kingdom United Kingdom - PHP jobs in United Kingdom
Age: ???
All time rank: 2268101 in United Kingdom United Kingdom
Week rank: 1467 Up62 in United Kingdom United Kingdom Up
Innovation award
Innovation award
Nominee: 2x


  Detailed description   Download .zip .tar.gz  
This class can check whether a number is prime.

It first checks if the number is divisible by small prime integers.

If it passes the low prime numbers check, the class checks if the number ends with a digit that all higher prime numbers end.

On the final step it checks if the number is divisible by any of the prime numbers that are found incrementally.

  Classes of Ahmad Retha  >  Is Prime  >  Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Is Prime
Base name: is-prime
Description: Check whether a number is prime
Version: -
PHP version: 5.0
License: BSD License
All time users: 331 users
All time rank: 5931
Week users: 0 users
Week rank: 2076 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Math Math related classes. View top rated classes


  User ratings  
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file IsPrime.php Class IsPrime PHP Class

Download all files: is-prime.tar.gz is-prime.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.