• @[email protected]
    link
    fedilink
    English
    2411 months ago

    It’s been a fat minute since I last did any programming outside of batch scripts and AHK… I’m struggling to understand how it’s not returning false for 100% of the tests

    • @[email protected]
      link
      fedilink
      English
      50
      edit-2
      11 months ago

      It is always returning false, but the screen shows a test, where a non-prime evaluating as false is a pass and a prime evaluating as false is a fail :))

    • Troublehelix
      link
      fedilink
      English
      2711 months ago

      The output shown is the result of a test for the function, not the result of the function itself.

    • JackGreenEarth
      link
      fedilink
      English
      1411 months ago

      It’s returning false for all the tests, but it only should be returning false for 95% of them, as 5% are prime.