Ad
  • Custom User Avatar

    No, 117 = 3313 and 117 ** 0.5 is about 10, so if you break the while loop, you won't find 13! But if you want to find out is a number prime, that will help.

  • Custom User Avatar

    I didn't think it could be solved with a one-dimensional array, my two-dimensional array gets bad results when using min(), for example res = min([[0, 9, 9], [1, 1]]) after running res = [0, 9, 9]. Because 0 < 1