Can someone explain this task a little bit more. thx
Threeprime Numbers
I don't ask for help in general, I don't understand the problem statment.
you have to find how much threeprime numbers are there
a threeprime number is any number with 3 or more digits whose everi 3 digits digit[i],digit[i+1],digit[i+2] give prime number when they are looked as a separate number, like this digit[i]*100+digit[i+1]*10+digit[i+2]
a threeprime number is any number with 3 or more digits whose everi 3 digits digit[i],digit[i+1],digit[i+2] give prime number when they are looked as a separate number, like this digit[i]*100+digit[i+1]*10+digit[i+2]
You have to check for each three contiguous digits if it is three primer, example:
number 1274 is not three primer number cuz
127 is threeprime number but 274 is not threerpimer, and number 1271 is Threeprime number cuz 127 is prime and 271 is prime. I hope you will understand better now...
number 1274 is not three primer number cuz
127 is threeprime number but 274 is not threerpimer, and number 1271 is Threeprime number cuz 127 is prime and 271 is prime. I hope you will understand better now...
thx, I though the number should have just one three prime number.
just read the problem statement carefully.