In this paper, we refine the function g(x) on Grimm's conjecture and improve a result of Erdos and Selfridge without using Hall's theorem.