Bell numbers: Difference between revisions

(Added solution for Little Man Computer)
Line 1,839:
 
=={{header|Little Man Computer}}==
Demonstrates an algorithm that uses a 1-dimensional array and addition. The maximum integer on the LMC is 999, so the maximum Bell number found is B_7 = 877.
 
In order to handle arrays, a program for the LMC has to modify its own code. This practice is usually frowned on nowadays, but was standard on very early real-life computers, such as EDSAC.
<lang Little Man Computer>
// Little Man Computer, for Rosetta Code.
Line 1,926 ⟶ 1,929:
7:877
</pre>
 
 
=={{header|Lua}}==
113

edits