/ Published in: Ruby
Expand |
Embed | Plain Text
#! /usr/bin/ruby require 'mathn' p = Prime.new cnt = 0 while(cnt<10000) p.next cnt = cnt + 1 end puts p.next.to_s
You need to login to post a comment.
#! /usr/bin/ruby require 'mathn' p = Prime.new cnt = 0 while(cnt<10000) p.next cnt = cnt + 1 end puts p.next.to_s
You need to login to post a comment.