At which point a housemate walked up to it and coded the Sieve of Erasthosthenes prime number algorithm in something like 11 characters and out came a list of primes. Holy. And I thought I'd grokked APL.
This is so long ago, that I had to google it. Here it is, OK, more than 11 characters but maybe the code is not exactly the same.
(~v∊v∘.×v)/v←1↓⍳100 ⍝ primes to 100.
2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97
Taken from here with explanation how it works: https://dfns.dyalog.com/n_sieve.htmIt might be added that when the ratio of human:computer processing power was still more in favour of "human", insanely cryptic "hero languages" were popular. Thinking about the lowest-level of scripting in text formatters, APL, the vi macro langauge, and the nastier aspects of Perl.
These days, readable code trumps all, and it's the compiler's job to turn it into incomprehensible gibberish.