Skip to content

Create main.py#2

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

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

Conversation

@Tuda1921
Copy link
Collaborator

No description provided.

Copy link
Member

@HocJ2me HocJ2me left a comment

Choose a reason for hiding this comment

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

Review 1

main.py Outdated
@@ -0,0 +1,16 @@
def is_prime(n):
for i in range(2,n):
Copy link
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)

n = int(input("nhap n: "))
print("n =",n)
print("-------------")
print(is_prime(n))
Copy link
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