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: truthy or falsy
Sample i/o
43 -> true
4 -> false
Shortest code wins.
./check 1
should returnfalse
? \$\endgroup\$1
gives false. \$\endgroup\$