Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in definition of IsComposite #29

Closed
ramz-san opened this issue Jul 14, 2022 · 2 comments
Closed

Error in definition of IsComposite #29

ramz-san opened this issue Jul 14, 2022 · 2 comments

Comments

@ramz-san
Copy link
Contributor

The definition of IsComposite in the Quantifiers section of Writing an Invariant is:

IsComposite(num) ==
\E m, n \in 2..Len(num):
m * n = num

I believe it should be:

IsComposite(num) ==
\E m, n \in 2..num:
m * n = num

@hwayne
Copy link
Owner

hwayne commented Jul 15, 2022

It should

@hwayne
Copy link
Owner

hwayne commented Jul 15, 2022

Pushing fix now

@hwayne hwayne closed this as completed Jul 15, 2022
hwayne pushed a commit that referenced this issue Jul 15, 2022
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

No branches or pull requests

2 participants