Smallest Value After Replacing With Sum of Prime Factors — CaffeCode