A prime cloud, possibly also known as a primal walk, is created by starting at some point, taking a prime number, dividing it by a number, in this case 7, using the remainder to choose a direction, moving there, and repeating with the next prime number. We then colour it in based on the number of times each point is visited.
Yeah, there are 6 directions, and I mod by 7. Since we're using prime numbers, they'll never divide evenly and we will never have a remainder of 0, so we add an extra number and pretend 0 doesn't exist.
I've only seen this done twice, although I imagine there are more, and in both instances it was 2D. As far as I know this is the first time it has been done in 3D, but I could be wrong.
The above programs are executed via the commandline. Takes start and end frames as arguments, or none to render all frames. You'll need to edit and recompile the source if you want a different resolution or sieve size.
Thanks to Melekor for the sieve code, Senses777 for the original program and idea, and both for helping to render the frames.
firstprime.jpg - As far as I know, this is the first 3D prime cloud ever rendered.
firstprime90.jpg - The same cloud as above but rotated 90 degrees.
primebug.jpg - Started writting filter to make the cloud look nicer. Something goes horribly wrong.
testrender.avi - First animation, to make sure it was working.
Back. . .