APL Exercises

These exercises are designed to introduce APL to a high school senior adept in mathematics. The entire set of APL Exercises has the following sections: Introduction0. Beginnings1. Utilities2. Recursion3. Proofs4. Rank Operator5. Index-Of 6. Key Operator7. Indexing8. Grade and Sort9. Power Operator10. Arithmetic11. Combinatorial ObjectsThe Fine Print Sections 2 and 10 are the most interesting […]
50847534

⎕io←0 throughout. I was re-reading A Mathematician’s Apology before recommending it to Suki Tekverk, our summer intern, and came across a statement that the number of primes less than 1e9 is 50847478 (§14, page 23). The function pco from the dfns workspace does computations on primes; ¯1 pco n is the number of primes less […]