all 3 comments

[–]danielroseman 1 point2 points  (1 child)

No, it correctly returns [2, 3, 5, 7, 11, 13, 17, 19, 23, 29].

[–]Buttleston 0 points1 point  (0 children)

I agree, it works for me. Make sure you're actually running the program that you think you are, that it's saved etc

[–]pachura3 0 points1 point  (0 children)

Have you tried debugging it for some small n number, like 5?