basic ruby prime number generator
factorial implementation in ruby