Best solutions for Primitive Calculator