rename function

This commit is contained in:
filifa 2025-07-23 21:57:24 -04:00
parent 973da7e99d
commit 849441f151
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@
"metadata": {},
"outputs": [],
"source": [
"def totient_sieve(limit):\n",
"def totient_range(limit):\n",
" totients = [n - 1 for n in range(0, limit)]\n",
" totients[0] = 0\n",
" totients[1] = 1\n",
@ -76,7 +76,7 @@
"answer = None\n",
"ratio = float('inf')\n",
"\n",
"for (n, totient) in enumerate(totient_sieve(limit)):\n",
"for (n, totient) in enumerate(totient_range(limit)):\n",
" if n == 0 or n == 1 or totient == n - 1:\n",
" continue\n",
" \n",