0

I'm trying to write a javascript code that will print out the prime numbers between 1 and 100

17th Nov 2023, 1:17 PM
Uthman Onikoko
Uthman Onikoko - avatar
4 Réponses
+ 8
This is not a platform to give you a readymade code firstly try by yourself.
17th Nov 2023, 2:15 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
17th Nov 2023, 2:21 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 5
Sakshi he gave the code before and later deleted that comment Im deleting my answer right now...
17th Nov 2023, 2:20 PM
Ugulberto Sánchez
Ugulberto Sánchez - avatar
+ 2
First you want to create a function which is the formula for finding out the prime number and use a for loop to find out the prime number . Create another function which gives the range example 1 to 100 and call the function and your code is ready
17th Nov 2023, 1:49 PM
P A Arrchith Iyer
P A Arrchith Iyer - avatar