+ 24
[ASSIGNMENT] (already submited to the lesson factory)
Strong Numbers A strong number is a number such as the square of all its prime divisors is still one of its divisors. The 3 strong numbers (the last 2 happen to be consecutive) smaller then 10 are: 4, 8 and 9. For instance the divisors of 8 are 2 and 4 (it is not necessary to count 1 and 8 itself) but only 2 is prime. Therefore, 2^2=4 and 4 is a divisor of 8, so 8 is a strong number. Tasks: (easy) Write a program to check if a given number is strong or not. (medium) Write a program to give all the strong numbers in a given range. (hard) Write a program to give all the consecutive strong numbers in a given range. Any programming language is welcome. Have fun coding!
5 Answers
+ 13
https://code.sololearn.com/cCL87KoX02dG/?ref=app
+ 4
https://code.sololearn.com/cSoDDrbhofMj/?ref=app
+ 4
Uni
Here this is my try in Kotlin =
Checked Upto (100000) in SoloLearn =
https://code.sololearn.com/cjnefB8dAS7L/?ref=app



