>>13566035It even fails when you write a prompt like:
>129301283091823 + 1287373773which can be solved by any computer these days.
The answer to 77777777777 + 22222222 is equal to
1111111111111111111111111111
A:
Use this code
public static void main(String[] args) {
int sum = 77777777777 + 2222222222;
int max = Integer.MAX_VALUE;
for (int i = 0; i < sum; i++) {
int maxValue = (int) Math.pow(2, Integer.parseInt(i+1,10));
if (i == 0) {
System.out.println(maxValue);
}
else if (