+ 8
[ASSIGNMENT] !___/Challenge to All Solos\___!
Write a code (using any weapon) that factorize a given number (normally split the number to the multiplication of 2s, 3s, 5s and 7s) and if a number is prime then show that it's a prime number! i.e: i) Given number= 24 Your code execute= 2×2×2×3(or any order) ii) Given number= 23 Your code execute= It's a prime number.
9 Answers
+ 14
https://code.sololearn.com/cvbN18sy25FS/?ref=app
+ 8
I hope it doesn't bother you if it shows 2^3+3^1 instead of 2×2×2+3....
https://code.sololearn.com/cwkwLCKALDM6/?ref=app
+ 5
This is my try:
https://code.sololearn.com/Wz54rIBeTLf4/?ref=app
+ 4
https://code.sololearn.com/W871aW02m5C2/?ref=app
+ 3
It's difficult for read :)
I wrote this when I began java.
https://code.sololearn.com/c22v3R7W59PI/?ref=app
+ 3
https://code.sololearn.com/cmySGNT4lxPQ/?ref=app