JavaScript program to find out if number is prime and to find all prime numbers between two numbers.