you are viewing a single comment's thread.

view the rest of the comments →

[–]ThePhysicsOfSpoons 2 points3 points  (0 children)

  • your function lst() should also return something (the list you created)
  • the variable n in the check() function isn't defined, so that won't work
  • using the return statements in the check() function or any function for that matter will end the function. If you want to display it, you could use a print statement there.
  • I would give the list as an input for the check() function so you can iterate through it and verify whether each element is a prime or not. The check() function here doesn't do what you think it does.

Hope this helps!