Added a comment: this will only work for small numbers