Ad
  • Default User Avatar

    The random tests are just 1000 random numbers between 0 and Int32.MaxValue. Your solution doesn't cover all possible cases. You only check if something is divisible by 2, 3, 5, or 7... if it's not then you declare the number as prime. There are plenty of numbers which aren't divisible by those numbers but are divisible by other numbers. 361, for example isn't prime, but isn't divisible by any of those numbers.

  • Custom User Avatar

    Your code fails with this single input: "Welcome". I sincerely doubt the same code works fine with this input in VSC.