fn precheck(input: &Input, x: i64, y: i64) -> bool
Quick check with some false positives but no false negatives.