From 4b5d69e116106424a31d085b9fc0f25d184934cf Mon Sep 17 00:00:00 2001 From: bmwoodruff Date: Fri, 11 Jul 2025 18:39:18 -0700 Subject: [PATCH] Updated the readme and added a small prime function. --- participants/scipy_047/doc/README.md | 8 ++++---- participants/scipy_047/pr_tutorial/simple_functions.py | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) 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