exercise 3 - primes (ruby & node.js)