Tuesday, November 1, 2016

Ruby Prime numbers

Ruby is the only language that has all the prime numbers in a set.

Prime
The set of all prime numbers.


it's like "Chuck Norris Has Counted To Infinity. Twice" 

Just kidding - basically, the class provides Enumerable type API to prime number generator with limitation to methods 'each' and 'first', but I like the Ruby Doc description :-)

No comments:

Post a Comment