Skip to content

Print the Prime numbers product table based on count ( how many numbers)

Notifications You must be signed in to change notification settings

ramth05/PPtable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prime_prod_table

Print the Prime numbers product table based on count ( how many numbers)

Files & folders:

PrimeNumber.php : Class for generating prime numbers and its product

PrimeProdTable.php : Used to run from CLI to print the table

./test/PrimeNumberTest.php: Contains unit test for PrimeNumber class based on phpunit test framework.

Uses:

From CLI just run:

php PrimeProdTable.php --count <pass the count for prime numbers> 

How to run test file:

Reuirement: phpunit must be installed. Go to test folder and run

phpunit .

or 

phpunit PrimeNumberTest.php

About

Print the Prime numbers product table based on count ( how many numbers)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages