This site requires JavaScript, please enable it in your browser!
Greenfoot back

wjm's Comments

Back to wjm's profile

Yes, it must be run locally. Maybe I don't understand how to control the gallery, but I just don't see how to include Actor objects (and the terminal window) in the world in any other way. That's why I also exported, in addition to the full version, a 'sample' version (with reduced functionality) so that you could see what an Ulam spiral looks like.
Sorry for the problem. Just to let you know, this is my first posted scenario so maybe I didn't build it correctly; if I screwed up, once again, sorry. This is what I did to respond to your question: 1. downloaded and extracted zip file 2. dropped Ulam_1_02_full on my Greenfoot shortcut 3. Compile all 4. added actor class to ulamWorld 5. Run it works! Please let me know if I can be more helpful.
wjmwjm

2008/8/12

Thanks for taking a look. The pattern is made up of natural (1+ integers) numbers that are 'wrapped' in a square-like spiral like this: 5 4 3 6 1 2 7 8 9 10 In the image, each non-prime is a white pixel and each prime is a dark (gray) pixel. There is a concentration of primes along certain diagonals (and a few horizontal and vertical) lines. This surprises most people upon first viewing (there is actually a very simple reason for it). Try downloading the full scenario and you will be able to have more control over your patterns (called Ulam spirals after their discover. See http://en.wikipedia.org/wiki/Stanislaw_Marcin_Ulam).