Skip to content

Commit b43f99c

Browse files
committed
Forgot to commit answer
1 parent 38f7e93 commit b43f99c

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

Diff for: cryptohacks/RSA/rsa_starter.ipynb

+6-11
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
},
162162
{
163163
"cell_type": "code",
164-
"execution_count": 7,
164+
"execution_count": 9,
165165
"metadata": {},
166166
"outputs": [],
167167
"source": [
@@ -171,19 +171,14 @@
171171
},
172172
{
173173
"cell_type": "code",
174-
"execution_count": 8,
174+
"execution_count": 10,
175175
"metadata": {},
176176
"outputs": [
177177
{
178-
"ename": "TypeError",
179-
"evalue": "'int' object is not callable",
180-
"output_type": "error",
181-
"traceback": [
182-
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
183-
"\u001b[1;31mTypeError\u001b[0m Traceback (most recent call last)",
184-
"\u001b[1;32m<ipython-input-8-d7cf33e03267>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mprint\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mphi_primes\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mp\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mq\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
185-
"\u001b[1;32m<ipython-input-7-f7f938d5cf5b>\u001b[0m in \u001b[0;36mphi_primes\u001b[1;34m(p, q)\u001b[0m\n\u001b[0;32m 1\u001b[0m \u001b[1;32mdef\u001b[0m \u001b[0mphi_primes\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mp\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mq\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 2\u001b[1;33m \u001b[1;32mreturn\u001b[0m \u001b[1;33m(\u001b[0m\u001b[0mp\u001b[0m \u001b[1;33m-\u001b[0m \u001b[1;36m1\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mq\u001b[0m \u001b[1;33m-\u001b[0m \u001b[1;36m1\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
186-
"\u001b[1;31mTypeError\u001b[0m: 'int' object is not callable"
178+
"name": "stdout",
179+
"output_type": "stream",
180+
"text": [
181+
"882564595536224140639625987657529300394956519977044270821168\n"
187182
]
188183
}
189184
],

0 commit comments

Comments
 (0)