View Single Post
Old May 3rd, 2008, 3:37 PM   #11
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 746
Rep Power: 3 Jimbo is on a distinguished road
Re: Sane's Monthly Algorithms Challenge #1 [05-08]

Sane - for the first one (beginner), what about int overflows? Since obviously we'll be using signed types for our input, will we need to check for the starting value + some subsequent operation overflowing from positive to negative? Also, is 1 considered prime?
__________________
<insert disclaimer here>
<insert shameless plug for Visual Studio here>
Jimbo is offline   Reply With Quote