Refactored PrimeToWord, Fully migrated the remaining members and methods