Filter which imposes additional restrictions on GCD of %$(p - 1)/2$%