PHPackages                             apsingh/prime-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. apsingh/prime-generator

ActiveLibrary

apsingh/prime-generator
=======================

A prime number multiplication table generator

012PHP

Since Jun 7Pushed 6y agoCompare

[ Source](https://github.com/Alokpsingh/prime-generator)[ Packagist](https://packagist.org/packages/apsingh/prime-generator)[ RSS](/packages/apsingh-prime-generator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Prime Multiplication Table Generator
====================================

[](#prime-multiplication-table-generator)

Introduction
------------

[](#introduction)

This is a program that prints out the multiplication table for the first 10 prime numbers.

Usage
-----

[](#usage)

**Using Command-line**

Clone or download this git repository and use `php index.php` to execute the project and show an output.

This project has 3 option settings:

1. If you use `php index.php` it will use the default settings to show a table of prime and it's multiples but with **n=10**.
2. If you use `php index.php ` and replace the number placeholder with an integer it will take that as the value of **n**.
3. If you use `php index.php  notable` it will print just the first **n** number of primes without multiplication tables.

**Using Composer**

In your composer-based php project, run the following line from the command prompt:

```
composer require apsingh/prime-generator

```

This will automatically include the library into the project and you can now access it by including the respective files in your project.

Sample Output
-------------

[](#sample-output)

---

```
         2      3      5      7     11     13     17     19     23     29

```

---

```
  2      4      6     10     14     22     26     34     38     46     58

```

---

```
  3      6      9     15     21     33     39     51     57     69     87

```

---

```
  5     10     15     25     35     55     65     85     95    115    145

```

---

```
  7     14     21     35     49     77     91    119    133    161    203

```

---

```
 11     22     33     55     77    121    143    187    209    253    319

```

---

```
 13     26     39     65     91    143    169    221    247    299    377

```

---

```
 17     34     51     85    119    187    221    289    323    391    493

```

---

```
 19     38     57     95    133    209    247    323    361    437    551

```

---

```
 23     46     69    115    161    253    299    391    437    529    667

```

---

```
 29     58     87    145    203    319    377    493    551    667    841

```

---

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b8d2eb166d4ca5b4e26998ed8f664ac2ae05205c4ee9954e185b4fabc87c0ef?d=identicon)[alokpsingh](/maintainers/alokpsingh)

---

Top Contributors

[![Alokpsingh](https://avatars.githubusercontent.com/u/4025356?v=4)](https://github.com/Alokpsingh "Alokpsingh (1 commits)")

### Embed Badge

![Health badge](/badges/apsingh-prime-generator/health.svg)

```
[![Health](https://phpackages.com/badges/apsingh-prime-generator/health.svg)](https://phpackages.com/packages/apsingh-prime-generator)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
