Sturm sequences of polynomials related to regular primes