Skip to content

Create main.py#2

Open
Tuda1921 wants to merge 3 commits into
mainfrom
Dat/So-Nguyen-To
Open

Create main.py#2
Tuda1921 wants to merge 3 commits into
mainfrom
Dat/So-Nguyen-To

Conversation

@Tuda1921

Copy link
Copy Markdown
Collaborator

No description provided.

@HocJ2me HocJ2me left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review 1

Comment thread main.py Outdated
@@ -0,0 +1,16 @@
def is_prime(n):
for i in range(2,n):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sao không cho chạy đến sqrt(n)

Comment thread main.py
n = int(input("nhap n: "))
print("n =",n)
print("-------------")
print(is_prime(n))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Viết thêm lệnh if để kiểm tra snt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants