Skip to content

Commit b8cf2e9

Browse files
authored
math/perfect_numbers: update deprecated approaches
1 parent 26c66c7 commit b8cf2e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Algorithms/Math/Perfect_Numbers.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module PerfectNumbers =
66
match n with
77
| n when n <= 0 -> false
88
| n ->
9-
{ 1 .. n - 1 }
9+
seq { 1 .. n - 1 }
1010
|> Seq.takeWhile (fun i -> i * i <= n)
1111
|> Seq.filter ((%) n >> (=) 0)
1212
|> Seq.fold (fun acc i -> acc + i + n / i) 0

0 commit comments

Comments
 (0)