Problems, Tips & Tricks
How many primes less than or equal to 7293 exits?
#!/usr/bin/env ruby require 'mathn' s=0 Prime.each(7293) do |prime| s+=1 end puts 'resultado:'+s.to_s
source
Post a Comment
No comments:
Post a Comment