HHC 2014 Programming Contest
|
09-24-2014, 12:46 PM
Post: #7
|
|||
|
|||
RE: HHC 2014 Programming Contest
(09-24-2014 11:46 AM)Paul Dale Wrote:You're counting days instead of the difference in the YYYYDDMM representation. The difference between December 31 of one year and the next is 10,000, not 729. E.g. 20141231 - 20131231. (09-24-2014 11:46 AM)Paul Dale Wrote: Put a leap year in the second or third year (a leap year in the first doesn't matter):Leap years don't matter since we aren't counting days. This changes the details of your analysis, but the results are the same: one of the days must be divisble by 3. (09-24-2014 11:46 AM)Paul Dale Wrote: Starting with January 1st instead of December 31st doesn't help because for January 1st to be PDP, the previous December 31st must be too.I think it can work:
You have to include years 0 and 5 in the analysis of this pattern but you get the same result: one of the days that must be prime can't be prime. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 18 Guest(s)