Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Blazej Bucko
committed
Jan 29, 2012
1 parent
58e29f3
commit e568328
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 | |||
} | |||
|
|||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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") { | |||
|
|||
} | |||
} |