Posted By

cmm7825 on 05/20/10


Tagged


Versions (?)

Problem 7


 / Published in: Ruby
 

  1. #! /usr/bin/ruby
  2.  
  3. require 'mathn'
  4.  
  5. p = Prime.new
  6. cnt = 0
  7.  
  8. while(cnt<10000)
  9. p.next
  10. cnt = cnt + 1
  11. end
  12.  
  13. puts p.next.to_s

Report this snippet  

You need to login to post a comment.