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

threed6.txt slow or infinite loop? #3

Closed
jcreedcmu opened this issue Jun 29, 2024 · 2 comments
Closed

threed6.txt slow or infinite loop? #3

jcreedcmu opened this issue Jun 29, 2024 · 2 comments
Assignees

Comments

@jcreedcmu
Copy link
Member

I'm confused both because I thought this used to work, and I assume it's your solution that you submitted. However, on A=1, B=1, I see

make 3v && cat ../solutions/threed/threed6.txt | tail -n +2 |  ./3v 1 1

seemingly running forever

@jcreedcmu
Copy link
Member Author

I am a fool, we are given

# Input
  `2 <= A <= 500`

# Output
  `1` if `A` is a prime number, and `0` otherwise.

# Example
  * `A = 5`
    `Answer = 1`
  * `A = 4`
    `Answer = 0`

so it needn't do anything correct on A=1.

@jcreedcmu
Copy link
Member Author

WAI WONTFIX

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