programming-formalisms / programming_formalisms_project_summer_2023

The Programming Formalisms project of summer 2023
https://github.com/UPPMAX/programming_formalisms
GNU General Public License v3.0
0 stars 0 forks source link

Refactor: determine if a number is prime #18

Open richelbilderbeek opened 1 year ago

richelbilderbeek commented 1 year ago

This Pythonpool post shows multiple ways to determine if a number is prime.

Use only the code that uses standard Python, i.e. ignore code that uses packages. In that way, everyone can run that code :-)

Start from that code and refactor it, so that functions have proper names and the tests make sense.