---
title: "Discussion on \"DAY 11 of PYTHON top 100 questions : from Basic to Advanced !!\" | Hashnode"
description: "Discussion on \"DAY 11 of PYTHON top 100 questions : from Basic to Advanced !!\". Write a Python program to check whether a given number is a prime number or not:-\nnum = int(input(\"Enter a number: \"))\n\nresult = \"\"\ni = 2\n\nwhile i * i <= num:\n    if num % i == 0:\n        result = \"not \"\n        break\n    i += 1\n\nif num < 2 or result..."
url: "https://hashnode.com/posts/day-11-of-python-top-100-questions-from-basic-to-advanced/648dfbe52ec71b87f518b4a6"
---

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

Discussion

# [DAY 11 of PYTHON top 100 questions : from Basic to Advanced !!](https://priyachakraborty.hashnode.dev/day-11-of-python-top-100-questions-from-basic-to-advanced?utm_source=hashnode&utm_medium=feed)

Write a Python program to check whether a given number is a prime number or not:- num = int(input("Enter a number: ")) result = "" i = 2 while i \* i <= num: if num % i == 0: result = "not " break i += 1 if num < 2 or result...

Jun 17, 2023 · 1 min read · priyachakraborty.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#python-beginner](https://hashnode.com/tag/python-beginner)
-   [#basics-of-python](https://hashnode.com/tag/basics-of-python)
-   [#prime](https://hashnode.com/tag/prime)

## Written by

[Priya Chakraborty](https://hashnode.com/@PriyaChakraborty)

@PriyaChakraborty · West Bengal,India

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

Learn,Grow & Contribute

Hello, I'm Priya Chakraborty, a dedicated B.Tech student in Electrical Engineering at Siliguri Institute Of Technology. I'm an enthusiastic learner, constantly seeking to expand my skill set and knowledge base. With a solid foundation in programming languages such as C, R, Python, and MySQL, I'm poised to tackle complex technical challenges. But my passions extend beyond the realm of engineering. I'm also an aspiring content writer, driven by a curiosity to communicate ideas, both technical and non-technical, in a way that captivates and educates. My journey is defined by a relentless pursuit of self-improvement, coupled with strong communication skills. I believe in the power of continuous learning and the importance of sharing knowledge.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
