prime numbers in nodejs