+ 1

Write a program to print prime numbers blw 1-100

12th Sep 2018, 2:16 PM
Bharti Bharti
Bharti Bharti - avatar
4 Respuestas
+ 5
for(i=1;i<=100;i++){ printf("%d\t",i); } edit: I guess thread is edit anyway here is the code https://code.sololearn.com/c6U0so0o4MRh/?ref=app
12th Sep 2018, 2:24 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 3
I'm making a code
12th Sep 2018, 3:11 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
12th Sep 2018, 3:22 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
0
Dark Angel the isprime() function could use optimization. you only need to check up to the square root of the number, not the number itself.
12th Sep 2018, 5:04 PM
hinanawi
hinanawi - avatar