---
title: "Discussion on \"Solving and testing primality testing (part c29a)\" | Hashnode"
description: "Discussion on \"Solving and testing primality testing (part c29a)\". Решение без тестов быстро ломается, поэтому добавим к задаче простые проверки.\nЗадача\nОпределить, является ли число n простым. Достаточно проверять делители до квадратного корня из n.\nРешение\ndef is_p"
url: "https://hashnode.com/posts/solving-and-testing-primality-testing-part-c29a/6ad789d6254da9f137b27348"
---

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

Discussion

# [Solving and testing primality testing (part c29a)](https://news-ctl-posts.hashnode.dev/solving-and-testing-primality-testing-part-c29a?utm_source=hashnode&utm_medium=feed)

Решение без тестов быстро ломается, поэтому добавим к задаче простые проверки. Задача Определить, является ли число n простым. Достаточно проверять делители до квадратного корня из n. Решение def is\_p

Oct 20 · 2 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.
