We call a number that has only 1 and itself as divisor as Prime number.
I was thinking how to get it through code, it was hard but I figured that those numbers divide by any numbers between 1 and itself doesn't divide so here's a code.
https://github.com/SoftwareDevJake/PrimeNumber
GitHub - SoftwareDevJake/PrimeNumber
Contribute to SoftwareDevJake/PrimeNumber development by creating an account on GitHub.
github.com
'JavaScript' 카테고리의 다른 글
JavaScript Tip (2) - Using tip (1) for undo and redo function in array (0) | 2022.10.30 |
---|---|
JavaScript Tip (1) - saving array into another array (0) | 2022.10.30 |