(Prime Strings challenge) How do I make this code work for Strings with more than 5 characters? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

(Prime Strings challenge) How do I make this code work for Strings with more than 5 characters?

I wrote this code hoping to it would work for any String, but it doesn't for some reason. Could someone pinpoint the problem and explain it to make this code work? https://code.sololearn.com/c5j3ANQQQOgr/?ref=app

4th Sep 2019, 11:42 AM
Tashila Pathum
Tashila Pathum - avatar
1 Answer
+ 2
https://code.sololearn.com/cKhTn35ncrTi/?ref=app I made a code to do that.
4th Sep 2019, 12:18 PM
Eliya Ben Baruch
Eliya Ben Baruch - avatar