Use bigint for place values to be more adaptable with longer inputs.
Put functions with different purposes into their own files.