cbv / icfp-2024

ICFP contest 2024
1 stars 0 forks source link

threed6.txt slow or infinite loop? #3

Closed jcreedcmu closed 2 months ago

jcreedcmu commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

WAI WONTFIX