File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1084,14 +1084,14 @@ already familiar with Git and GitHub then you will also need to work through
1084
1084
1085
1085
.. proof :exercise ::
1086
1086
1087
- Create a new Python :term: `package ` named :mod: ` math_utils ` containing a
1088
- :term: ` module ` called :mod: ` primes `. In the :mod: `primes ` module define a
1089
- function :func: ` isprime ` which takes in a single integer argument and
1090
- returns `True ` or `False ` depending on whether or not the argument is
1091
- prime. There is no need use a sophisticated algorithm, simply checking
1092
- whether the number is zero modulo any of the integers less than its square
1093
- root will be fine. Test your code by running the following in the exercise
1094
- repository:
1087
+ In your week 2 exercise repository, create a new Python :term: `package `
1088
+ named :mod: ` math_utils ` containing a :term: ` module ` called :mod: `primes `.
1089
+ In the :mod: ` primes ` module define a function :func: ` isprime ` which takes
1090
+ in a single integer argument and returns `True ` or `False ` depending on
1091
+ whether or not the argument is prime. There is no need use a sophisticated
1092
+ algorithm, simply checking whether the number is zero modulo any of the
1093
+ integers less than its square root will be fine. Test your code by running
1094
+ the following in the exercise repository:
1095
1095
1096
1096
.. code-block :: console
1097
1097
You can’t perform that action at this time.
0 commit comments