Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
Ramkan7
/
Patch_Hawk
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
Patch_Hawk
/
patchhawk
/
data
/
benign
/
math_prime.py
RAMCr7
Final patch
58f6308
4 months ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
Safe
195 Bytes
def
is_prime
(
n
):
"""Check if a number is prime."""
if
n <=
1
:
return
False
for
i
in
range
(
2
,
int
(n**
0.5
) +
1
):
if
n % i ==
0
:
return
False
return
True