Skip to content

Commit

Permalink
Add application for profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim committed Dec 1, 2019
1 parent 5ec05a1 commit 9c36761
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/Atkin.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Main where

import Math.NumberTheory.Primes

atkin :: (Int, Int) -> Int
atkin (p, q) = sum $ atkinPrimeList $ atkinSieve p q

main :: IO ()
main = print $ atkin (10000000000,100000000)
11 changes: 11 additions & 0 deletions arithmoi.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,14 @@ executable sequence-model
main-is: SequenceModel.hs
hs-source-dirs: app
default-language: Haskell2010

executable atkin
build-depends:
base,
arithmoi,
containers
buildable: True
main-is: Atkin.hs
hs-source-dirs: app
default-language: Haskell2010
ghc-options: -O2 -Wall

0 comments on commit 9c36761

Please sign in to comment.