편집 기록

편집 기록
  • 프로필 nowp님의 편집
    날짜2022.06.09

    문제만 있는 질문 삭제 : 질문 영어라 죄송합니다. 아무리 생각해도 모르겠어요 ㅠㅠ


    문제만 있는 잘문 삭제함.

  • 프로필 최원우님의 편집
    날짜2022.06.09

    질문 영어라 죄송합니다. 아무리 생각해도 모르겠어요 ㅠㅠ


    Create function is_prinme(n), in which n is an integer larger than 1. The function returns True if n is a prime number, otherwise, it returns False.

    1. A simple method of checking the primality of a giver numver n, called trial division, tests whether n is divisible by any integer between 2 and root n. Hints: 1.May use(x%y==0) to check if x is divisible by y.
    2. May consider using the functions of the math module, such as sqrt(), ceil(), floor() .etc

    Example: is_prime(3) =>True is_prime(6) => False