IsPiValencedScheme

A scheme is called a $\pi$-valenced scheme if every valency is a $\pi$-number. IsPValencedScheme(R, pi) returns whether R is pi-valenced, where pi is a set of prime numbers.