Skip to content

Added task#63

Open
IgnatSergeev wants to merge 3 commits intomainfrom
primes
Open

Added task#63
IgnatSergeev wants to merge 3 commits intomainfrom
primes

Conversation

@IgnatSergeev
Copy link
Owner

No description provided.

let primes =
let isPrime n =
let sequence = { 2..(n-1) }
Seq.forall (fun x -> n % x <> 0) sequence

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Искать делители до самого числа — дело довольно безнадёжное, наверняка можно быстрее

@@ -0,0 +1,9 @@
module Primes

let primes =

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вот тут хоть комментарии напишите :)

IgnatSergeev and others added 2 commits May 31, 2024 16:02
Co-authored-by: Yurii Litvinov <yurii.litvinov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants