Print N Prime Numbers In Javascript