Python program to find a number is prime or composite || programminginpython.com

preview_player
Показать описание
How to check whether a number is prime or composite in python?

A simple python program which finds whether a given number is prime or composite. Here we find the factors of the given number to check for a prime or a composite number.

-~-~~-~~~-~~-~-
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

you made my day yar after doing all kind of bullshit i found your vedio this was a small logic but i didn't knew where to start and where to end up.. shukriya yar...

shami
Автор

I've encountered an error with you program. When I print (isPrime(27)), it shows it is a prime number. Why is that?

DoDONDone
Автор

Wrong logic 3 will show as composite number

Sheharalis
Автор

here's an error is showing
unorderable type str()>int()

rudrachaturvedi