More Prime!

Well, I'm trying to build the table/array and it's only pushing through
1 and stops.
I tried moving x = x+1 up, put end after it... but then I just got
syntax errors. Once I have a working array, I'll test it in the sqrt of
my def... but it's not ready for that yet... :(