ENG  RUSTimus Online Judge
Online Judge
Online contests
About Online Judge
Frequently asked questions
Site news
Problem set
Submit solution
Judge status
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
back to board

Discussion of Problem 1586. Threeprime Numbers

Posted by DixonD (Lviv NU) 27 Oct 2007 15:19
Why answer for 4 is 204?

If we have 143 three-digit primes numbers each of them can create 10 four-digit threeprimes numbers!

a1a2a3 - three-digit prime number -> a1a2a3* - four-digit threeprime number

+some numbers *a1a2a3 which is not included early.
So answer must be larger than  204.
Whats wrong? I don't understand...
Re: Clarification
Posted by M@STeR.SoBG 27 Oct 2007 15:35
"Pasha calls an integer a threeprime number if ANY( !!! ) three consecutive digits of this integer form a three-digit prime number"

Read the statement. For the first time i didn't understand too :-)))
Re: Clarification
Posted by DixonD (Lviv NU) 27 Oct 2007 15:57
Finally understand it. Thanks a lot!

Edited by author 27.10.2007 16:19
Re: Clarification
Posted by marius dumitran 24 Jul 2009 19:37
if all three consecutive letters.....
bla bla ....
any is clearly not very clear....