prime numbers code bricks for JavaScript