replace bitwise xor with !=

This commit is contained in:
filifa
2025-07-20 15:48:28 -04:00
parent 82f06fae28
commit f34d791b85
3 changed files with 3 additions and 3 deletions

View File

@@ -25,7 +25,7 @@
" break\n",
"\n",
" for n in range(1, m):\n",
" if not ((m % 2) ^^ (n % 2)) or gcd(m, n) != 1:\n",
" if not ((m % 2) != (n % 2)) or gcd(m, n) != 1:\n",
" continue\n",
" \n",
" a = m^2 - n^2\n",