use Math::BigInt;push(@a,Math::BigInt->new(2)->bpow($_))for 0..300;for$s(1..100){for(@a){if(/^$s/){print("$_\n");last}}}