Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Problem 007

  • Loading branch information...
commit e5683288c7852de9db045d75d0a646c8303d4029 1 parent 58e29f3
@bbucko authored
View
16 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
+ }
+
+}
View
15 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") {
+
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.