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: