Skip to content
Browse files

start implementing a prime seive

Signed-off-by: t.pickett66 <t.pickett66@gmail.com>
  • Loading branch information...
1 parent e687c2c commit e3325bf692203aa9258695b2753d430dfb22c8fc @tpickett66 committed Mar 9, 2012
Showing with 22 additions and 0 deletions.
  1. +8 −0 lib/prime_sieve.rb
  2. +5 −0 test/prime_sieve_test.rb
  3. +9 −0 test/test_helper.rb
View
8 lib/prime_sieve.rb
@@ -0,0 +1,8 @@
+#= prime_seive.rb - My implementation of Sieve of Eratosthenes
+
+module PrimeSeive
+ def self.primes_less_than(n)
+ primes = []
+
+ end
+end
View
5 test/prime_sieve_test.rb
@@ -0,0 +1,5 @@
+require File.dirname(__FILE__) + 'test_helper'
+
+class PrimeSeiveTest << MiniTest::Unit::TestCase
+
+end
View
9 test/test_helper.rb
@@ -0,0 +1,9 @@
+require 'rubygems'
+require 'bundler/setup'
+require 'minitest/unit'
+
+ROOT_PATH = File.join(File.dirname(__FILE__), "..")
+
+$:.unshift(File.join(ROOT_PATH, 'lib'))
+
+require 'pes'

0 comments on commit e3325bf

Please sign in to comment.
Something went wrong with that request. Please try again.