If p divides the numerator of the Bernoulli number for
Bernoulli Number, Irregular Prime
Johnson, W. "Irregular Primes and Cyclotomic Invariants." Math. Comput. 29, 113-120, 1975.