There are a number of sieve algorithms that can be used to list prime numbers up to a certain value.  I came up with this implementation in Scala. I rather like it, as it makes no use of division, modulus, and only one (explicit) multiplication. Despite being in Scala, it’s not in a functional style. It uses…
Tag: math
I first ran in to Martin‘s work in back-issues of Scientific American. He stopped writing his Mathematical Games column in 1981, but my mentor Virgil Matheson had all the older issues and had a free hand in lending them out, albeit one-at-a-time. From my mentor, I also got the best math book I’ve ever read,…
There are no limits, only quanta. There is no smooth, only lumpy. Analog is a myth; the world is digital. We just haven’t found the extent of its mantissa. – SymbolismLost. More collected Geek Thoughts at http://geekthoughts.info.
Pi, an irrational number, cannot be expressed exactly as a fraction of integers (and all real-world length units are ultimately based on integers). So either pi is not a circle’s ratio of circumference to diameter, or circles don’t exist (or both!) More collected Geek Thoughts at http://geekthoughts.info.
There exist two kinds of geeks in the world. Those that see a backwards E, and those that see a 180-degree rotated E. More collected Geek Thoughts at http://geekthoughts.info.
I was on the right page at the right time and spotted this: WIth zero votes for any candidate and zero precincts reporting, CNN calls it. Now, I’m no stats expert, but this one seems a bit extreme. Comments? -m