Added lowest prime factor function