---------------------------------------------------------------------------------------------
8888888888 d8b 888 888b d888 8888888b. 888
888 Y8P 888 8888b d8888 888 Y88b 888
888 888 88888b.d88888 888 888 888
8888888 888 88888b. .d88888 888Y88888P888 888 888 888 d88P 8888b. .d8888b 888888
888 888 888 "88b d88" 888 888 Y888P 888 888 888 8888888P" "88b 88K 888
888 888 888 888 888 888 888 Y8P 888 888 888 888 .d888888 "Y8888b. 888
888 888 888 888 Y88b 888 888 " 888 Y88b 888 888 888 888 X88 Y88b.
888 888 888 888 "Y88888 888 888 "Y88888 888 "Y888888 88888P' "Y888
sdqsdqsd 888
Y8b d88P
"Y88P"
---------------------------------------------------------------------------------------------
8888888b. d8b 88888888888 888 888
888 Y88b Y8P 888 888 888
888 888 888 888 888
888 d88P 888d888 888 88888b.d88b. .d88b. .d8888b 888 8888b. 88888b. 888 .d88b.
8888888P" 888P" 888 888 "888 "88b d8P Y8b 88K 888 "88b 888 "88b 888 d8P Y8b
888 888 888 888 888 888 88888888 "Y8888b. 888 .d888888 888 888 888 88888888
888 888 888 888 888 888 Y8b. X88 888 888 888 888 d88P 888 Y8b.
888 888 888 888 888 888 "Y8888 88888P' 888 "Y888888 88888P" 888 "Y8888
---------------------------------------------------------------------------------------------
___ _____ _____ ___ _ ___ _ _ ___ _____ ___
| _ \/ _ \ \ / / __| _ \___ /_\ | \| \| |/ _ \_ _| | _ \___ _ __ _ _
| / (_) \ V /| _|| /___/ _ \| |) | .` | (_) || | | / -_) ' \ || |
|_|_\\___/ |_| |___|_|_\ /_/ \_\___/|_|\_|\___/ |_| |_|_\___|_|_|_\_, |
---------------------------------------------------------------------------------------------
Developped by ROYER-ADNOT Remy a Friday night!
run 'node primes 3' to run the application with "3" as an input. or call 'PrimesTable.init(3)' from JavaScript.
Run grunt check
for running jshint.
Run grunt test
for running jasmine tests.
Run grunt
for running both.
I took care of optimizing "IsPrime" algorithm. The methods "IsPrime", "buildPrimeList", and "drawMultiplicationTable" are reusable and accessible. All methods are well unit-tested.
An Angular Single Page Application serving a Web Interface to display the primes numbers table as an HTML table. Web Responsive Design to display all sized table on every device resolution (with eventual scrolling).