+ 2

!--CHALLENGE--!

Make a program that declares if a typed number is prime or not IN 35 LINES OF CODE MAX! Come on, GET TO WORK!

4th Dec 2017, 10:52 AM
Petar
Petar - avatar
11 Answers
4th Dec 2017, 11:58 AM
Cool Codin
Cool Codin - avatar
4th Dec 2017, 11:48 AM
Justine Ogaraku
Justine Ogaraku - avatar
+ 10
https://code.sololearn.com/cCeKKQnUY3Hm/?ref=app
4th Dec 2017, 12:44 PM
KĂ€zĂź MrĂźdĂčl HĂžssÀßn
KĂ€zĂź MrĂźdĂčl HĂžssÀßn - avatar
4th Dec 2017, 6:38 PM
LukArToDo
LukArToDo - avatar
+ 7
https://code.sololearn.com/W23MEvWVNdal/?ref=app
4th Dec 2017, 11:59 AM
Kartikey Sahu
Kartikey Sahu - avatar
+ 3
GOOD JOB GUYS! THE OFFICIAL WINNER OF THE CHALLENGE IS... @Cool Codin becouse it is simple and fast! Well done man!
4th Dec 2017, 7:21 PM
Petar
Petar - avatar
+ 1
A little faster (built on Ruuko's) https://code.sololearn.com/c3hAouyCR19V/?ref=app
4th Dec 2017, 11:48 AM
Amir Galanty
Amir Galanty - avatar
+ 1
This one uses prime factorization, I originally used it to calculate the sum of all primes below 2 million: https://code.sololearn.com/cpPJeiJ7goFW/?ref=app
4th Dec 2017, 12:00 PM
Shadow
Shadow - avatar
4th Dec 2017, 6:52 PM
VcC
VcC - avatar