Refactored PrimeToWordDictionary, created a singleton dictionary