Update prime factor calculator