Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alustau/math
https://github.com/alustau/math
composer interview jobs math php7 phpunit
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/alustau/math
- Owner: alustau
- License: mit
- Created: 2018-04-04T20:01:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-04T20:57:10.000Z (almost 7 years ago)
- Last Synced: 2024-11-15T21:39:35.306Z (about 2 months ago)
- Topics: composer, interview, jobs, math, php7, phpunit
- Language: PHP
- Size: 14.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Math
This is a project with goals to help developers.## Table of Contents
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)## Features
* Prime Number Calculator
## Installation through Composer
```shell
$ composer require alustau/math
```## Usage
It's easy to use, see to example below:```php
use Math\PrimeNumber;
$math = new PrimeNumber();
$math->isPrime(11); // true
//add a range from 1 to 100
$math->setNumbers(range(1,100));$math->getPrimes(); // [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97]
$math->count();// 25
```