Skip to content

Commit

Permalink
Update ALGORITHM.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pgujjula authored Apr 5, 2024
1 parent e8c247a commit 5e18522
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/ALGORITHM.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ composites = applyMerge (*) primes [2..]
Gaussian integers, ordered by norm ([Wikipedia](https://en.wikipedia.org/wiki/Gaussian_integer)):

```haskell
zs :: [Int]
zs :: [Integer]
zs = 0 : concatMap (\i -> [i, -i]) [1..]

gaussianInts :: [Complex Int]
gaussianInts = map snd (applyMerge (\x y -> (x*x + y*y, x :+ y)) zs zs)
gaussianIntegers :: [GaussianInteger] -- `GaussianInteger` from arithmoi
gaussianIntegers = map snd (applyMerge (\x y -> (norm (x :+ y), x :+ y)) zs zs)
```

Square-free integers ([Wikipedia](https://en.wikipedia.org/wiki/Square-free_integer)):
Expand Down

0 comments on commit 5e18522

Please sign in to comment.