Using prime numbers to make better backgrounds 15 years ago
http://www.sitepoint.com/examples/primes/maze.html
The graphics are a bit nasty but the concept is works. There seems to be a diagonal pattern emerging, but a fourth layer would certainly break that.