This is basically generate prime numbers.
This is a javascript library that contains some basic mathematical function.