Skip to content

Commit

Permalink
Problem 007
Browse files Browse the repository at this point in the history
  • Loading branch information
Blazej Bucko committed Jan 29, 2012
1 parent 58e29f3 commit e568328
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/scala/pl/iogreen/euler/Problem007.scala
@@ -0,0 +1,16 @@
package pl.iogreen.euler


class Problem007 {

def atkinSieve(n: Int): List[Int] = {
var result: List[Int] = 5 :: 3 :: 2 :: Nil
var sieve: List[Boolean] = List.fill(n)(false)
result
}

def resolve(n: Int): Int = {
42
}

}
15 changes: 15 additions & 0 deletions src/test/scala/pl/iogreen/euler/Problem007Test.scala
@@ -0,0 +1,15 @@
package pl.iogreen.euler

import org.scalatest.FunSuite
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class Problem007Test extends FunSuite {

val resolver = new Problem007()

test("generating primes") {

}
}

0 comments on commit e568328

Please sign in to comment.