A variant of the basic algorithm is sometimes used; instead of requiring that "p" − 1 has all its factors less than "B", we require it to have all but one of its factors less than some "B", and the remaining factor less than some .