Tag: math

Prime Number sieve in Scala

0 Comment

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…

Martin Gardner will be missed

0 Comment

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,…

© All Right Reserved
Proudly powered by WordPress | Theme: Shree Clean by Canyon Themes.