← Back to topics
Topic

Threeprime Numbers

D
Daniel93
Can someone explain this task a little bit more. thx
D
Daniel93
I don't ask for help in general, I don't understand the problem statment.
n
nemanja1990
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]
n
nikola
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...
D
Daniel93
thx, I though the number should have just one three prime number.
g
gates
just read the problem statement carefully.