$x ** 2, str_split((string) $n))); } return !in_array($n, $visited, true); } }