Adding prime number test in more optimised way in Ruby.
Adding prime number test in more optimised way in Ruby.

The program uses the fact that checking till the square root of the number because larger factor of the number must be multiples of smaller factors of the number.

mojtabatmj/Hacktoberfest2017,mojtabatmj/Hacktoberfest2017,mojtabatmj/Hacktoberfest2017,mojtabatmj/Hacktoberfest2017,mojtabatmj/Hacktoberfest2017,mojtabatmj/Hacktoberfest2017,mojtabatmj/Hacktoberfest2017,mojtabatmj/Hacktoberfest2017,mojtabatmj/Hacktoberfest2017,mojtabatmj/Hacktoberfest2017,mojtabatmj/Hacktoberfest2017,mojtabatmj/Hacktoberfest2017,mojtabatmj/Hacktoberfest2017,mojtabatmj/Hacktoberfest2017,mojtabatmj/Hacktoberfest2017