+ 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!
11 Answers
+ 12
Here you go, Python!!!!
https://code.sololearn.com/clua6fUKIY5X/?ref=app
+ 10
https://code.sololearn.com/cCeKKQnUY3Hm/?ref=app
+ 7
https://code.sololearn.com/W23MEvWVNdal/?ref=app
+ 3
GOOD JOB GUYS! THE OFFICIAL WINNER OF THE CHALLENGE IS...
@Cool Codin becouse it is simple and fast! Well done man!
+ 1
A little faster
(built on Ruuko's)
https://code.sololearn.com/c3hAouyCR19V/?ref=app
+ 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
+ 1
one is enough
https://code.sololearn.com/cnU20ZM7PqAy/?ref=app