is_perfect_square uses isqrt
Merge the 3 extra-strong-Lucas param selections into one static function