Member-only story
Prime number checker online for big numbers > 1000 digits using Javascript
Enter the number that you want to check if it is prime or not. The biggest number that you can check can be more than 1000 digits long or even 10,000 digits.
If you google, you can find many websites that allow checking, if the number if prime.
But most of the top results for the checkers have some sort limit of max number that you can enter. Most of the online tools don’t handle big numbers and the prime checking implementation is done on the server side.
We now share a tool that is completely using javascript to calculate the primarily of a number that are big.
Here we check a number of 1000 digits. It uses Miller Rabin algorithm underneath and javascript’s biginteger library.
Because, this is implemented only in javascript, I was able to host it on github pages. You can find the tool below
Below is a sample screenshot of how the tool works. Simply input your big number and click Check to find out if the given number is prime or not.
Let me know, about your thoughts on this simple app.