Prime Factors Kata in M$ Transact SQL