+ 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.

30th Dec 2017, 9:12 AM
Usman Amin
Usman Amin - avatar
9 Answers
30th Dec 2017, 7:36 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 14
https://code.sololearn.com/cvbN18sy25FS/?ref=app
19th Jan 2018, 12:11 PM
Danijel Ivanović
Danijel Ivanović - avatar
30th Dec 2017, 3:02 PM
LukArToDo
LukArToDo - avatar
+ 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
1st May 2018, 11:46 PM
Uni
Uni - avatar
30th Dec 2017, 10:09 AM
Αητοιπe
Αητοιπe - avatar
+ 4
https://code.sololearn.com/W871aW02m5C2/?ref=app
30th Dec 2017, 3:51 PM
Luc Hariman Randrianomenjanahary
Luc Hariman Randrianomenjanahary - avatar
+ 3
It's difficult for read :) I wrote this when I began java. https://code.sololearn.com/c22v3R7W59PI/?ref=app
30th Dec 2017, 6:49 PM
abdulazizumarovich
abdulazizumarovich - avatar
+ 3
https://code.sololearn.com/cmySGNT4lxPQ/?ref=app
18th Jan 2018, 6:10 PM
...
2nd Jan 2018, 1:49 PM
István Ócsai
István Ócsai - avatar