+ 2

How to write a JavaScript program to find prime numbers between given range

eg. find all prime numbers between 212-690 using JavaScript

2nd Apr 2018, 6:51 AM
Akshay Ahire
Akshay Ahire - avatar
2 Answers
+ 1
Won't do it for you but will give you a nudge. 1. if you want to look at every number in a range you probably want a loop of some sort that starts and ends where the range does. 2. how do you know if a number is prime or not? test each loop iteration accordingly.
2nd Apr 2018, 7:25 AM
Adam
Adam - avatar