
You may choose to use any base for input and output (including binary and unary), provided they are both in the same base.
Input
A list of between 1 and 255 positive integers (inclusive), each in the range 1 to 232 - 1 (inclusive).
Input without leading zeroes is required to be accepted.
Input...