@@ThangamaniRITIt is one of the way to find prime number in number theory. If prime numbers less than the square root of the given number doesn't divides the given number then our number is prime.
Hi Reema, I am not sure why you need an interface here? Still you can just create interface and have a method declaration inside the interface & just implement in the class
You can create simple methods to check if number is prime or not like "isPrime(num)" then you can just use below logic int rotatingNum = 7; for (int j = 1; j
thanks its the most simple way to find it i will never forget this one
Wow 🥳 Way of Explaining is Outstanding Sir😍😍 Thanks a lot ☺️
Glad it was helpful! Thank you @Ramanan for your comment. Keep Learning & Keep Shining
import java.util.Scanner;
public class Prime {
public static void main(String p[]) {
Scanner s=new Scanner(System.in);
System.out.println("Enter a number");
int n=s.nextInt();
int flag=0;
for (int i=2;i
Thank you so much sir. Your explanation is awesome.
Thank you sir!!!Very good & easy explanation
If you traverse halfway through.....you get the result. No need to loop till we reach the number.
Yes, even if you traverse till square root of the number that will also work
Can you explain how it is ? Or send any links ?
@@ThangamaniRITIt is one of the way to find prime number in number theory.
If prime numbers less than the square root of the given number doesn't divides the given number then our number is prime.
@@ChiragKhimani can you tell me how write with pen on eclipse screen?
the way of teaching is osm
clean explanation Sir
Thanks Xaviball 🙌
Nice Explanation!
That's an amazing explanation... That I have never seen before.... On point 🎉 thankyou
Thank you @Monika
wow great explanation sir
Please make a video on remove duplicate from integers and string.
Hi Srikanth, Yes I'll upload it soon
Thank you vey much bhai.. ❤
thank you. very simple and good explanation.
Really bro it's just osm❤
Thank you so much 😀
Thank you❤good job!
top notch explanation becoming my favourite tutor
Wow, thanks for your comment!
Thank you so much Sir🙏
thank you so much super logic
thanks alottttt
brilliant explaination
Glad it was helpful. Thank you @Duy Thai Trieu for your comment!
good explaination
Nice solution thanks
Super explanation 👌 sir thank u
Thank you so much for your words @p shobana
Just perfect ❤
Sir you are very helpfull thanks
Thanks for your comment!
Nice explanation sir.. What to add in code to print prime number between any two numbers
Clean & Perfect Explanation Bro... Thanks a Lot ❤️🙌🏻
Glad you liked it! 😇 Thank you for your comment! @ Eswar ❤
Thank you so much
Thanks @Jarmegam for your comment.
thank you so much
Very nice concept brother 😊
Thanku bhai
Thank you
I understood
Glad it helped. Thanks for your comment @Halyeey Media
Brother it shows that 9 is prime number plz check all of u
Hi, It'll show 9 is not prime as the factors of 9 is 1, 3 & 9
:Pls post your program here so I can check
if take num =1;
the answer is not prime
The number one is neither a prime nor a composite
can you please reply me in the comment to check prime numbers using interface
Hi Reema, I am not sure why you need an interface here? Still you can just create interface and have a method declaration inside the interface & just implement in the class
I tried to upgrade your code and print out all numbers to check if they are prime or not:
int rotatingNum = 7;
for (int j = 1; j
You can create simple methods to check if number is prime or not like "isPrime(num)" then you can just use below logic
int rotatingNum = 7;
for (int j = 1; j
Your algorithm will be slow as the value of the input is larger since the Big O is O(n²)
Badhiya Bhai aap ne hi clear Kiya hai ,baki sab farzi
Thank you @Imran 🙋♂️
thank you
You are fucking genius
That was amazing !! 🤩🤩 can you make videos on spy and palindrome numbers too ????
Thanks for your comment Jayesh, Palindrome number video is already available in the playlist.
جزاك الله خير
super bro...
Thank you for your comment! @jagan
Thanks a lot sir
Tq so much sir
Thank you @M S ❤
thank u sir
Hara Hara mahadeva
Simple perfect
Thanks @Ranga!
🎩📴
hatiw to chit
Chirag i was stuck in the same issue where i made i
Glad it helped! Thanks for your comment @Nikhil
Thank you sir.
This video helped me very much.
Thank you sir
thank you
Hara Hara mahadeva
Thank u