making prime factor function more accessible