alustau/math

Helpful tools for Math

Maintainers

Details

github.com/alustau/math

Source

Issues

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 1

pkg:composer/alustau/math

v1.0 2018-04-04 20:47 UTC

This package is auto-updated.

Last update: 2025-10-02 09:45:16 UTC


README

This is a project with goals to help developers.

Table of Contents

Features

  • Prime Number Calculator

Installation through Composer

$ composer require alustau/math 

Usage

It's easy to use, see to example below:

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