Takes numeric input (N) from a user and outputs a multiplication table of (N) prime numbers.
[N = 5]
| X | 2 | 3 | 5 | 7 | 11 | -> Prime numbers
| 2 | 4 | 6 | 10 | 14 | 22 |
| 3 | 6 | 9 | 15 | 21 | 33 |
| 5 | 10 | 15 | 25 | 35 | 55 | -> A[row] * A[column] = cell
| 7 | 14 | 21 | 35 | 49 | 77 |
| 11 | 22 | 33 | 55 | 77 | 121 |
^
|
Prime numbers
- node
- npm
- mocha
- prime-generator (Only for testing)
- test-console
$> npm test
N = the number of primes (N > 0)
$> node index.js [N]
- Add library to print table
- Add Strategy pattern for different algorithm
- Add more efficient algorithm to perform the primality check
- Add performance stats between algorithm
- Add a docker machine
- Manue Gonzalez | GitHub | Twitter | [email protected]