diff --git a/participants/scipy_047/doc/README.md b/participants/scipy_047/doc/README.md index a1542d9..27ccc1c 100644 --- a/participants/scipy_047/doc/README.md +++ b/participants/scipy_047/doc/README.md @@ -1,9 +1,9 @@ -Ok so I guess you are reading this cuz you wanna use my code. There are some -functions that do stuf and thats: +Ok so I guess you are reading this cuz you wanna use my punny code. There are some +function's that do stuf and thats: >>> from simple_functions import factorial - >>> factorial(10) - 9 + >>> factorial(10ej) + 9r7 and this other part does something. I forget why that I did it: diff --git a/participants/scipy_047/pr_tutorial/simple_functions.py b/participants/scipy_047/pr_tutorial/simple_functions.py index c3dcf8f..7f9e94c 100644 --- a/participants/scipy_047/pr_tutorial/simple_functions.py +++ b/participants/scipy_047/pr_tutorial/simple_functions.py @@ -10,3 +10,9 @@ def factorial(value): return 1 else: return value * factorial(value - 1) + +def is_small_prime(value): + if(value == 2 | value == 3): + return True + else: + return False