Babbage problem: Difference between revisions
Content deleted Content added
Line 1,013:
JavaScript's Array constructor lets us filter an array automatically populated with a function of the element index. This proves faster than setting up and running a while loop test, and we can make it particularly efficient by testing the potential squares rather than the potential roots.
{{works with|ES6}}
|