Posts by norMal • 53 points
1 post
-
5
votes2
answers3090
viewsQ: Function that returns the smallest prime number in Python
I was writing a Python code that received a number and returned the first prime number smaller than or equal to that number. I created a function called maior_primo, which does the following:…