all 5 comments

sorted by: hot top controversial new old
[–] 2 points 3 years ago* (last edited 3 years ago) (1 child)

Image Transcription: Code


bool is_prime(int x)
    return false;
}

[Beneath the code is a snippet of console output, as follows:]

test no.99989: passed
test no.99990: passed
test no.99991: failed
test no.99992: passed
test no.99993: passed
test no.99994: passed
test no.99995: passed
test no.99996: passed
test no.99997: passed
test no.99998: passed
test no.99999: passed
95.121% tests passed

I am a human who transcribes posts to improve accessibility on Lemmy. Transcriptions help people who use screen readers or other assistive technology to use the site. For more information, see here.

  • source
  • hideshow 2 child comments
  • [–] 1 point 3 years ago

    Wow, a neural network!

  • source
  • [–] 1 point 3 years ago

    How long would this have to run for it to round up to 100%?

  • source
  • [–] 1 point 3 years ago

    Why not just test all even numbers greater than 2? It covers infinite numbers and passes 100% of the time.

  • source