FIND GIVEN NUMBER IS PRIME OR NOT IN JAVA

  Рет қаралды 15,393

SiriSree Tech Tutorials

SiriSree Tech Tutorials

11 ай бұрын

prime number in java
prime number program in java
prime number
prime or not in java
java prime number program
prime numbers
prime number or not
java prime number
prime number java
java
find prime number in java
java program to check prime number
write a java program to check prime number or not
java check prime number or not
find if a number is prime or not
java prime numbers
prime number in java 1 to 100
prime number or not in java

Пікірлер: 17
@nxplusgaming3583
@nxplusgaming3583 3 ай бұрын
Bro 9 is not prime but this programme is give output as prime It's just printing even and odd
@SiriSreeTechTutorials
@SiriSreeTechTutorials 3 ай бұрын
I’m not sure why you guys get such wrong output. For me it is working fine. Please do double check the program
@nxplusgaming3583
@nxplusgaming3583 3 ай бұрын
@@SiriSreeTechTutorials no bro program is right i was wrong sorry 😔
@himanshulowanshi5121
@himanshulowanshi5121 6 ай бұрын
This program is even odd numbers
@SiriSreeTechTutorials
@SiriSreeTechTutorials 6 ай бұрын
If it is even odd number program, I would have written (num%2==0) condition, why we need for loop before this condition. And then I am verifying (num%i == 0) That makes this program as prime or not
@chin2vk214
@chin2vk214 5 ай бұрын
This is a fake one if we give some odd multiple it won’t work. For example 33
@SiriSreeTechTutorials
@SiriSreeTechTutorials 5 ай бұрын
No words broo. I don’t know whether you tried or not. Please try once and make a comment
@aviligondarakesh4477
@aviligondarakesh4477 2 ай бұрын
Bro true
@aviligondarakesh4477
@aviligondarakesh4477 2 ай бұрын
​@@SiriSreeTechTutorialsnuvvu thappu ichi cover chesukovadhu
@nileshgurung9437
@nileshgurung9437 6 ай бұрын
What if we put 2
@SiriSreeTechTutorials
@SiriSreeTechTutorials 6 ай бұрын
Then this will get fail… I notice that and expect the question from followers. Before if, we should check the value is greter than 2 or not, if not then print as not prime and return..
@tanayhalder6340
@tanayhalder6340 Ай бұрын
this program will not work for 9 also dlt this fake vid
@aviligondarakesh4477
@aviligondarakesh4477 2 ай бұрын
Bro this is fully wrong bro
@SiriSreeTechTutorials
@SiriSreeTechTutorials 2 ай бұрын
I’m not sure why this program does not work for you guys.
@aviligondarakesh4477
@aviligondarakesh4477 2 ай бұрын
@@SiriSreeTechTutorials actuqlly here whats going is i%j in the condition , 2 will be looping here , but not work on 3 and 5 and 4 thats the problem
@omhatgaonkar2755
@omhatgaonkar2755 6 ай бұрын
But if we put 1 it says it is prime, and 1 is not prime number
@SiriSreeTechTutorials
@SiriSreeTechTutorials 6 ай бұрын
Yeah. Before for loop, we should write an if condition. Thanks for finding this.
GIVEN NUMBER IS PALINDROME OR NOT IN JAVA
1:00
SiriSree Tech Tutorials
Рет қаралды 2,3 М.
Find Prime Numbers In Java - Full Walkthrough with Source
13:17
Coding with John
Рет қаралды 35 М.
100❤️
00:19
MY💝No War🤝
Рет қаралды 18 МЛН
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 12 МЛН
Java Program #6 -  Find Prime Numbers in Java
8:49
Programming For Beginners
Рет қаралды 6 М.
Armstrong Number | To check if a given number is an Armstrong number or not | Java
10:21
you will never ask about pointers again after watching this video
8:03
Low Level Learning
Рет қаралды 2,1 МЛН
Java methods 📞
11:05
Bro Code
Рет қаралды 123 М.
Java Program to find Prime Numbers Between 1 to 100
11:25
learnprograming byluckysir
Рет қаралды 35 М.
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 1,7 МЛН
Choose a phone for your mom
0:20
ChooseGift
Рет қаралды 6 МЛН