attempting to translate Number.java from /eulerJava to C++