View Single Post
Old May 3rd, 2008, 2:22 PM   #7
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,799
Rep Power: 5 Sane will become famous soon enough
Re: Sane's Monthly Algorithms Challenge #1 [05-08]

Sorry, I see why that's misleading. That sentence was intended to finish the sentence from rule 2.

It was to be read like:

"If n is positive, n will increase by 3, unless n is prime, then n must decrease by 1."

You are correct. Follow the test case. It should be "n must decrease by 1 if n is prime".
Sane is offline   Reply With Quote