Program To Check If A Number Is Prime Or Not In Java | FREE DSA Course in JAVA | Lecture 10

  Рет қаралды 21,188

TAP ACADEMY

TAP ACADEMY

Күн бұрын

Пікірлер: 39
@MadhavBRohidekar
@MadhavBRohidekar 2 ай бұрын
This Logic does not work for higher numbers , it restricts you to lesser number only for Example 21 is divisible by 7 (7*3=21)
@rahulgaikwad593
@rahulgaikwad593 4 ай бұрын
is 25 prime? As per your logic 25 s prime. but actually its not
@prantidatta3566
@prantidatta3566 2 ай бұрын
Please answer for 9
@Krishnadev-od8nq
@Krishnadev-od8nq 3 ай бұрын
sir the time complexity for this cannn also be minimize to o(1) or o(4) by this if(num==1)return false; if(num==2||num==3||num==5)return true; if(num%2==0||num%3==0||num%5==0)return false; return true; }
@trijay
@trijay 8 ай бұрын
I am a student of Rohit sir... Batch 2016 ... After that I am seeing him here... As usual very well explained sir...fan of you
@11csepratikshaargulewar71
@11csepratikshaargulewar71 3 ай бұрын
At timestamp 27:00 checkPrime method isn't called .but it is called isPrime
@_sarthakmisal
@_sarthakmisal Жыл бұрын
@tapacademy sir you said 35 is included in sexy prime numbers but how it can be 28:26
@sunthar16
@sunthar16 9 ай бұрын
@4.50, num/2 == Last factor, but its not applicable for number - 9 , when 9/2 return 4, not factor 3
@mahavir9267
@mahavir9267 6 ай бұрын
Thank you sir, but I have a doubt is 35 prime? Because it's factors: 1,5,7,35 🤔🤔
@charukeshck6502
@charukeshck6502 Жыл бұрын
Sir U look like KL Rahul😄😄
@monikaed.education4954
@monikaed.education4954 Жыл бұрын
Amazing and unique ways shared to solve and get outputs concepts it's really so much helpful I ever seen before ❤😮
@syedsuhel6164
@syedsuhel6164 6 ай бұрын
In last Ur not invokes the checkprime function. Logic is still executing form isprime function😢
@shitalshinde9387
@shitalshinde9387 Жыл бұрын
Sir 35 is not prime but In program we gave it as a prime . Then how can we solve it by other method.
@TAPACADEMY
@TAPACADEMY Жыл бұрын
Check your program again, it will not return prime for 35
@badetijayasrianjana6125
@badetijayasrianjana6125 Жыл бұрын
35 is not a prime, why it named as sexy prime
@nadeemmirza3245
@nadeemmirza3245 Жыл бұрын
Yes , since it is divisible by 5
@sush_cat2601
@sush_cat2601 9 ай бұрын
25 is not prime no 😂😂this is flaw But I love your teaching method Excellent teacher you are,always ready to shair every knowledge which you have
@narayanavenkata2644
@narayanavenkata2644 Жыл бұрын
Hello sir....can u please upload the video for finding.... square root (√x)....values...
@chaituchaitanya6556
@chaituchaitanya6556 10 ай бұрын
Hi sir, at 4:42,you mentioned that the last factor is divided by 2. However, 2, 3, 4, 3, 5, 6, out of these highlighted numbers,2, 2, 5 are not divided by 2. Can someone please clarify where am I missing?
@NmesomaPeter-h5v
@NmesomaPeter-h5v 5 ай бұрын
God bless you for this, THis is the best explanation every
@bokinalavijay6876
@bokinalavijay6876 6 ай бұрын
9/2 = 4 and it is !3 know??
@ROHITKUMAR-or9tk
@ROHITKUMAR-or9tk Жыл бұрын
We do i*i
@Poojayadav-hg4vw
@Poojayadav-hg4vw 5 ай бұрын
Your lectures are amazing !!
@chiranjeevi.vchiru5161
@chiranjeevi.vchiru5161 10 ай бұрын
Whenever I see your videos and way of teaching, I get motivation for coding Rohit sir
@jaykumarkota3161
@jaykumarkota3161 Жыл бұрын
Amazing explanation❤
@geethikareddy8707
@geethikareddy8707 7 ай бұрын
if we type 1 it is coming true
@ayantikapaik3688
@ayantikapaik3688 10 ай бұрын
U are great🥺I got ur teeching so comfortable after hcf and lcm solution on java.
@indirajithl1866
@indirajithl1866 8 ай бұрын
Wonderful explanation I have ever had..
@TECHLAY-x4f
@TECHLAY-x4f Жыл бұрын
Sir awesome
@midlajahmad-cs0058
@midlajahmad-cs0058 10 ай бұрын
one of the cool and crisp explaination
@lakshmiram2935
@lakshmiram2935 8 ай бұрын
best video for beginners
@116_likhitawanjari2
@116_likhitawanjari2 Жыл бұрын
editor so smart.
@Jdk281
@Jdk281 11 ай бұрын
Love the way you teach...
@iamdhanush03
@iamdhanush03 10 ай бұрын
Amazing
@libertak1813
@libertak1813 Жыл бұрын
you deserve more views
@RaviGupta-vj1we
@RaviGupta-vj1we Жыл бұрын
excellent 🙂🙂
@hegde421201
@hegde421201 Жыл бұрын
Excellent rohit ravinder
@swapnil72
@swapnil72 11 ай бұрын
Till date this is the best video explanation I have seen on the analysis of prime number & how to find them in Java this video deserves the title of "fantastic primes and where to find them" 😅 This video perfectly explains the programming logic of finding primes whilst preserving the pure essence mathematical analysis ❤
@RajeshSharma-el7oj
@RajeshSharma-el7oj Жыл бұрын
Sir please hindi me video banaiye please 🙏🙏 humlog ko bhi help mele.... Please 🙏🙏🙏🙏 aapki content jabardast hai
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 52 МЛН
РОДИТЕЛИ НА ШКОЛЬНОМ ПРАЗДНИКЕ
01:00
SIDELNIKOVVV
Рет қаралды 2,2 МЛН
From Small To Giant Pop Corn #katebrush #funny #shorts
00:17
Kate Brush
Рет қаралды 71 МЛН
MATCH THE COUNTRY ARAB EDITION
24:25
Habibi Squad
Рет қаралды 102 М.
Kylian Mbappé Surprised My Friend
13:12
John Nellis
Рет қаралды 4,5 МЛН
I Saved 100 Dogs From Dying
15:03
MrBeast
Рет қаралды 233 МЛН
MP Holland Tries To Push Vassy Around Instantly Regrets It!
13:27
The Canadian Shield
Рет қаралды 22 М.
OMG! Jagmeet Singh LOSES HIS SH** After THIS!
11:53
David Miller
Рет қаралды 14 М.
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 52 МЛН