replace bitwise xor with !=
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
"def primitive_pythagorean_triplets():\n",
|
||||
" for m in count(2):\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",
|
||||
|
||||
Reference in New Issue
Block a user