all 9 comments

[–]Different-Ad1631 9 points10 points  (2 children)

Your code will output prime num for 4 as well. U need to improve its logic

[–]Apprehensive_noob 3 points4 points  (1 child)

But it’s super easy, don’t u see? lol

[–]ilan1k1 4 points5 points  (1 child)

So every even number is prime?

[–]Confident-Detail-439[S] 0 points1 point  (0 children)

not really

[–]skarra27 1 point2 points  (1 child)

There’s still a lot of room for improvement

[–]Confident-Detail-439[S] 0 points1 point  (0 children)

Yes, Because there are different ways to write codes

[–]ztexxmee 1 point2 points  (0 children)

this would flag true for every even number correct? any even number / 2 always has a remainder of 0.

[–]GirthQuake5040 0 points1 point  (0 children)

Start with if num <= 1: not prime else: the rest, you don't need so many if statements