cat input_control_data.txt
12
16
31
8
9
./num2binaries -f input_control_data.txt | head
8 4
16
16 8 4 2 1
8
8 1
python3 -B num2binaries.py -f input_control_data.txt | head
[4, 8]
[16]
[1, 2, 4, 8, 16]
[8]
[1, 8]
php num2binaries.php -f input_control_data.txt | head
4 8
16
1 2 4 8 16
8
1 8
head input.txt
986296472
968937991
993314250
901938175
907449119
907406169
923078616
955147695
958385122
940840904
./num2binaries -f input.txt | head
536870912 268435456 134217728 33554432 8388608 4194304 524288 65536 32768 8192 4096 128 16 8
536870912 268435456 134217728 16777216 8388608 4194304 32768 16384 4096 512 4 2 1
536870912 268435456 134217728 33554432 16777216 2097152 1048576 262144 32768 16384 1024 256 128 64 8 2
536870912 268435456 67108864 16777216 8388608 4194304 131072 16384 8192 4096 2048 512 256 128 64 32 16 8 4 2 1
536870912 268435456 67108864 33554432 1048576 262144 131072 32768 4096 512 256 16 8 4 2 1
536870912 268435456 67108864 33554432 1048576 262144 65536 32768 16384 8192 2048 512 256 64 16 8 1
536870912 268435456 67108864 33554432 16777216 262144 65536 2048 1024 512 256 128 64 16 8
536870912 268435456 134217728 8388608 4194304 2097152 524288 262144 131072 16384 8192 1024 256 128 32 8 4 2 1
536870912 268435456 134217728 16777216 1048576 524288 262144 131072 65536 32768 16384 2048 512 256 128 64 32 2
536870912 268435456 134217728 1048576 262144 4096 1024 512 256 128 64 8
time ./num2binaries -f input.txt | wc -l
1000000
real 0m1.662s
user 0m1.652s
sys 0m0.085s
time php num2binaries.php -f input.txt | wc -l
1000000
real 0m3.831s
user 0m3.102s
sys 0m3.260s
time python3 num2binaries.py -f input.txt | wc -l
1000000
real 0m7.602s
user 0m7.719s
sys 0m0.384s