---
title: "Discussion on \"Understanding primality testing\" | Hashnode"
description: "Discussion on \"Understanding primality testing\". Предлагаю решить задачу вместе: без спешки, с объяснением каждой строки.\nЗадача\nОпределить, является ли число n простым. Достаточно проверять делители до квадратного корня из n.\nРешение\ndef is_prime(n"
url: "https://hashnode.com/posts/understanding-primality-testing-mw9l5c2d/6af20ea97947d3797d2728b9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Understanding primality testing](https://news-ctl-posts.hashnode.dev/understanding-primality-testing-mw9l5c2d?utm_source=hashnode&utm_medium=feed)

Предлагаю решить задачу вместе: без спешки, с объяснением каждой строки. Задача Определить, является ли число n простым. Достаточно проверять делители до квадратного корня из n. Решение def is\_prime(n

16h ago · 1 min read · news-ctl-posts.hashnode.dev  
Read the article

## Written by

[Scottie](https://hashnode.com/@ozalopa965)

@ozalopa965

  
[View profile](https://hashnode.com/@ozalopa965)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
