diff --git a/project1.py b/project1.py index e66b77e..a5f21be 100644 --- a/project1.py +++ b/project1.py @@ -4,9 +4,18 @@ def fib(number_for_fibonacci): def is_prime(number_to_check): - # Add code here - # comment added by new user - return #boolean value +prime="True" +flag=1 +for word in range((int(number_to_check))//2-2) : + if int(number_to_check)%int(word+2)==0 : + flag=0 + break +if number_to_check=="1": + print(~prime) +elif flag==1: + print( prime) +else : + print(~prime) def reverse_string(string_to_be_reversed):