‘Quantum Calculator’ Algorithm Demonstrates Ability of Current Quantum Computers to Solve Optimization Problems