If lower limit 'L' in input is given as '0' or '1', then '1' gets included into the primes while printing. To avoid that, put a check at the start and change 'L' to '2', if it is given as '0' or '1'.
@kamalchhimwal9362
Жыл бұрын
Thanks mate! :)
@gamersgame43
Жыл бұрын
The max(firstMultiple, pr*pr) is not necessarily needed as when pr has a value of 1e6 it wll go 1e12 which leads to misleading memory access, while only firstMultiple formula works well Also to avoid L to be 0 or 1 we can put a check like this while printing the primes for(long long int i=l; i
@tkd_mech
Жыл бұрын
but pr can have max 1e4 not more than it, there will no issue running with it
@Manishgupta200
Жыл бұрын
This playlist is vary amazing and takes too much time to understand but all things are now clear. Thankyou striver
@saitehith6647
Жыл бұрын
Best Video on Segmented Sieve Ever
@rockygaming3663
6 ай бұрын
Video starts at 3:32
@thinkingmad1685
3 жыл бұрын
Understood bhaiya and took notes for getting started with programming
@jhanavikumari274
7 ай бұрын
Samajh agya
@deepanshubhatt4323
3 жыл бұрын
#UNDERSTOOD Everything Striver SIR... 😇
@JohnSmith-uu5gp
Жыл бұрын
Just Awesome Bhiyaaaa
@venkateshvenky2880
3 жыл бұрын
Understood clearly
@anshulrawat3458
Жыл бұрын
understood. striver guruji
@gurmansingh1878
2 жыл бұрын
Thanks a lot...
@yourbestie4138
3 жыл бұрын
understooood
@roushanraj8530
3 жыл бұрын
Please bring series for tries, segment trees, fenwick trees and bit manipulations
@s_3095
Жыл бұрын
Amazing 😍, striver 👍🙏
@anshumangupta1001
3 жыл бұрын
Understood..!
@rithikdutt1332
3 жыл бұрын
Clear!
@B-KrishanKant
3 жыл бұрын
mzaa aa gya nice explaination
@saurabhkumarsingh9550
3 жыл бұрын
Samjh aa gya ❤️
@hemanthkumar240
2 жыл бұрын
understood
@vuyyurishanmukhaabhinavvar4096
3 жыл бұрын
Understood striver
@rohandas6298
Жыл бұрын
long long l,r;cin>>l>>r; const long long N=r-l+1; vector isPrime(N,1); int limit=(int)sqrt(r); vector pr=primes(limit); for(auto x:pr){ long long r1=(x-(l%x)); if(l%x==0) r1=0; for(long long i=(l+r1);i
@anshumanrout6505
3 жыл бұрын
@codeverse python course by jay bansal sir please continue
@રવિપાંડે
3 жыл бұрын
Raj Vikramaditya Sir You really are चक्रवर्ती सम्राट of Coding ❤️
@kshitijmishra2716
2 жыл бұрын
understood
@himanshuOtakuu
3 жыл бұрын
22:42 there was a mistake while creating sieve "j++" should be "j+=i"
@AmanKumarSinhaOfficial
3 жыл бұрын
Yes
@senseiAree
Жыл бұрын
10:03
@darpandaswani04
10 ай бұрын
@@senseiAree what does this timestamp mean ?
@senseiAree
10 ай бұрын
@@darpandaswani04 My apologies.
@andreasleonidou3620
2 жыл бұрын
Best video on segmented sieve! The lecture was done in a way very easy to understand, and the tutor was also great! After 3 days of research I finally fully understood what segmented sieve is all about... thanks a lot!!
@subhashkumaryadav39
8 ай бұрын
Now i am 100% confident in prime numbers related all stuffs ....this is all bcoz of these 5 lectures which you taught very efficiently and smoothly..highly recommended playlist...Thanks a lot Striver bhaiya
@deathrider9698
3 жыл бұрын
Make a full series on Competitive programming from beginner to end and Data Structures and algorithms. It's very hard to get good resources for free and not everyone can afford paid courses.
@sarimahmed4219
3 жыл бұрын
Sab toa milhi jaata hai
@UCSGudduKumar
3 жыл бұрын
Karna to shuru kar questions Codeforces pe ya sirf course hi dhoondte rahega Apni Id diyo Codeforces ki leeme se kitne questions kiya hai
@tawseeftaher9109
2 жыл бұрын
@@UCSGudduKumar brother, please give your cf handle/id
@anuragpandey8165
2 жыл бұрын
22:42 It should be j+=i and not j++ (wasted half an hour)
@nithinshukla4679
2 жыл бұрын
Really Really Loved this Playlist. I just dont like prime numbers, factors etc, BUT THIS!!! ahh im so fricking thankful for this playlist. understood the concept SO SO SO WELL. THANK YOUUU STRIVER BHAIYA!❤️❤️🙌
@VishalDhangar-l1t
7 ай бұрын
in the process of making sieve , we can fill the dummy array directly over there ,, right ?
@funenjoynilaypatel4553
2 жыл бұрын
9 april 2022 11:00 am
@pykunalsingh
2 жыл бұрын
never find that interesting way to teach, all clear now!!
@patelrajkumarnareshkumar8156
2 жыл бұрын
bhaiya you did a great effort, but segment sieve is way heavier than sieve of erothomentas.
@sarveshshanmugam4669
2 жыл бұрын
No paid course could have taught better than this. Thanks bhaiya
@all-roundercrew7516
Жыл бұрын
this code isn't running on my compiler its always showing error at creatsieve function "message": "no return statement in function returning non-void [-Wreturn-type]",
@siddhantyadav4531
3 жыл бұрын
👌👌👌👌👌👌👌 best KZitem channel 👌👌👌👌
@amanrajput574
26 күн бұрын
understood 👍👍👍❤❤
@noob_gaming903
2 жыл бұрын
I got an compilation error when i create dummy array it says identifier 'dummy' is undefined. Can someone help me over this error
@saurabhtiwari287
3 жыл бұрын
Samjh aa gya sir. Aap smjhaye Or na aaye aaisa kabhi nhi hua
@vaibhavchaubey8373
3 жыл бұрын
Finally Completed all the videos of the playlist. All the videos are completely understandable. Thanks a lot.
@thinkingmad1685
3 жыл бұрын
Were you able to solve que?
@Ext-Abhi
3 ай бұрын
crystal Clear
@bibhabendumukherjee9247
3 жыл бұрын
it is showing ""array bound is not an integer constant before ']' token error"".. please tell me sir about that
@AmanKumarSinhaOfficial
3 жыл бұрын
Bhaiya Please accept my Request.... Please make a video on how to get job just after bca...
@amulsethi8737
Жыл бұрын
understood
@mddinislam08
7 ай бұрын
It was best ever I seen.... take love from Bangladesh..❤❤❤
@VishnuKumar-ig4rt
Жыл бұрын
good
@vatsalkudecha2746
3 жыл бұрын
understood....Raj bhai...!
@kousthubhtadanki1237
2 жыл бұрын
super super super...!
@sundaramkumar6561
Жыл бұрын
understood
@himanshutripathi7441
2 жыл бұрын
what a energy mate. Thank you.
@aniketprasad1889
3 жыл бұрын
UNDERSTOOD ( SAMAJH AA GYA ) ✌
@abdulrehmaan153
Жыл бұрын
Awesome!!! Very helpful and BRAVE explanation
@DeepakKumar-xy8rw
3 жыл бұрын
Sir c++ stl ka question practice session please 🙏🙏🙏🙏
@roushanraj8530
3 жыл бұрын
Bhai kaise kr lete ho aap, just amazing bro you killed it 💯❤
@ishankhan17
2 жыл бұрын
I think the output is not correct if low=1
@arihantjammar8888
Жыл бұрын
undestood
@PriyaGupta-sg4sm
5 ай бұрын
❤🔥❤🔥❤🔥Striver is the best !!!
@AkashYadav-di6kd
Жыл бұрын
Thank you very much, bhaiya.
@kgCode658
3 жыл бұрын
Crystal clear and neend bhi nhi atti 😅😅
@devendrapandey4059
3 жыл бұрын
Samajh Aa gya, All your lectures very fantastic
@csdoit
2 жыл бұрын
sir yourrr good very
@raymadhav7956
3 жыл бұрын
understoood sirrrrrrrrrr
@priyanshvatsal9791
Жыл бұрын
Understood 🥰
@abhinavkumar5298
Жыл бұрын
Understood.
@akashddeepchitransh4537
2 жыл бұрын
Understood
@tanyacharanpahadi158
3 жыл бұрын
understood. Thank you soo much.
@gauravupreti4398
2 жыл бұрын
Understood
@omgupta5477
2 жыл бұрын
understood
@andersonbhat6885
2 жыл бұрын
Understood
@anmolyadav1647
2 жыл бұрын
understood
@SurajPatel-fn1hy
2 жыл бұрын
Understood
@nishthagarg2609
3 жыл бұрын
Understood sir
@DeepakGupta-vg4cr
3 жыл бұрын
Understood
@shaileshsingh6771
3 жыл бұрын
understood
@rigaut-valorant6105
3 жыл бұрын
understood
@venkat7692
3 жыл бұрын
Understood
@snehjoshi5798
3 жыл бұрын
Understood
@shantanugautam6517
3 жыл бұрын
Understood every bit ✌
@samiulislamponik1534
3 жыл бұрын
Thanks a lot.
@subhrodipdeb1705
3 жыл бұрын
understood sir
@jaiminsolanki5478
3 жыл бұрын
Understood...Crystal Clear!!
@princemishra8647
2 жыл бұрын
21:33
@mohitgupta4357_
2 жыл бұрын
samajh aa gya sir!!!!!!!
@kirananasuri6351
Жыл бұрын
Ardam avindi
@govindmajage2317
3 жыл бұрын
Great
@prateekjain2450
3 жыл бұрын
smajh aa gaya bhaiya
@billipranee1793
3 жыл бұрын
wonderful🌠
@mayanknagvanshi5-yeariddbi137
2 жыл бұрын
smjh aa gya
@SauravKumar-dk6vu
3 жыл бұрын
Samajh aa gaya 😊
@siddhantyadav4531
3 жыл бұрын
None of the teacher can teach like raj sir thanks a lot to raj sir and also for the channel 👌👌👌👌👌👌👌👌👍👍👍👍
@saurabhkumarsingh9550
3 жыл бұрын
Wonderful ❤️
@HarshitSharma-kk6yz
2 жыл бұрын
your coding style is very inconsistent you are using vector as well as native array without any name indication it is very bad as it decreases code maintainability please improve that may i can take you interview some day
Пікірлер: 105