Blast from the Apple past: Which program on the Apple II rewrote its own code?

Eug

Lifer
Mar 11, 2000
23,586
1,000
126
I can't think of it now, and I can't find it Googling either, but there was a program in BASIC back in the Apple ][ days that had a whole bunch of REM lines in the code, which was actually the storage space for its results data.

When the program executed and came up with results, it would rewrite the REMmed out lines to store those results.

Not surprisingly the program crashed a lot, but nonetheless it was a curious way for Woz to write a program.

What was the name of the program? I vaguely remember it simply being a demonstration of the idea, as opposed to a program to do real work, but I'd still like to know what program it was.