AKS Primality Test is a full proof algorithm for checking if any number is prime or not. This is a javascript implementation of this algorithm. To run and test the code -
git clone https://github.com/sibu-github/aks_primality_test.git
TEST_NUMBER=13 node index