MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / is_prime

Function is_prime

Codeforces_problems/Number Game/solution.py:2–6  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

1import math
2def is_prime(n):
3 for i in range(2,int(math.sqrt(n)) +1):
4 if n%i == 0:
5 return False
6 return True
7
8
9for _ in range(int(input())):

Callers 1

solution.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected