Prime factorization and decimal representation