Ad
  • Custom User Avatar

    The method returns an int, and Math.Ceiling returns a double, you'll need to convert them into int.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    1: Please read the description:

    Per Wikipedia, a prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself.

    1 is not greater than 1.

    2: It doesn't require so much optimization, 6 kyu is fine.