Write a program that checks if a given positive integer can be represented as sum of two or more consecutive positive integers.
Example:
43 can be represented as 21 + 22
10 = 1+2+3+4
but 4 cannot be represented in this way.
Input spec: positive integer (as argument or stdin)
Output spec: true or false
sample i/o
$./check 43
true
$./check 4
false
solution expected is creative, fast, golfed

./check 1should returnfalse? – mellamokb Jun 23 '11 at 4:231gives false. – Peter Taylor Jun 23 '11 at 9:24