Project Euler 686 - Powers of Two

Official link: https://projecteuler.net/problem=686