Coding challenge

Print what you get when $x^2+x+41$ is evaluated for $x=0...100$ or so. What percentage of the numbers are prime? What about from $x=0...2398$? $4000$? (from Engel, p. 260).

Type your code here:


Lua reference

See your results here:

Show a friend, family member, or teacher what you've done!

Here is a share link to your code: