The code snippet in the made-up language is certainly interesting. You know, with more judicious use of the graph paper, sprinkle in some OCR and you might could run the hand-written version one day. The typed version maybe something like
0 PRICE=$10.02
1 MAT A[20]
2 BIN L
3 DEC N
/ 4 FOR N FROM 1 to 2^20
| 5 L = N
| 6 /*******/
| 7 (/\A[L])?=PRICE 10
\ 8 NEXT N
9
10 PRINT A[L]
20 END
30 /SNUFFYRUN
40 ((NIL))
50
60
70
80
90
100
200
300
400
500
END