PHP Classes

PHP Prime Numbers Generator: Generate a list of prime numbers up to a limit

Recommend this page to a friend!
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 202 All time: 8,448 This week: 148Up
Version License PHP version Categories
prime-number 1.0GNU General Publi...5.3Algorithms, PHP 5, Math
Description 

Author

This class can generate a list of prime numbers up to a limit.

It takes a given limit number and returns all prime numbers below that limit.

The class can also check if given individual numbers are prime.

Picture of Assaad Youssef Abou Rached
  Performance   Level  
Name: Assaad Youssef Abou ... <contact>
Classes: 3 packages by
Country: Lebanon Lebanon
Age: 42
All time rank: 32864 in Lebanon Lebanon
Week rank: 312 Up1 in Lebanon Lebanon Up

  Files folder image Files  
File Role Description
Plain text file extractPrimeNumbersArray.php Example Extract prime numbers from a given array
Plain text file extract_prime_numbers.php Example Extract all prime numbers for a given range
Plain text file listPrimeNumbers.php Example Lists the first prime numbers from a given limit
Plain text file Prime.php Class Prime numbers extractor
Plain text file primeNextPrev.php Example Finds the next smallest or previous largest prime number for a given number
Plain text file check_if_prime.php Example Checks whether or not the number is prime

 Version Control Unique User Downloads Download Rankings  
 0%
Total:202
This week:0
All time:8,448
This week:148Up