My task is to find all prime divisors of the number, but my code doesnt work | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

My task is to find all prime divisors of the number, but my code doesnt work

My task is to find all prime divisors of the number, but my code doesnt work. I was trying to find divisors and then check if its a prime number can u help me ? (code works but dont do the task) https://code.sololearn.com/cqihiIqgHRgf/?ref=app

17th Sep 2018, 10:54 AM
Salt MyMan
Salt MyMan - avatar
2 Answers
+ 1
You can use my prime number generator https://code.sololearn.com/cGeRY6J2qLPJ/?ref=app
17th Sep 2018, 7:17 PM
Sergey Ushakov
Sergey Ushakov - avatar
+ 1
tnx guys
17th Sep 2018, 8:11 PM
Salt MyMan
Salt MyMan - avatar