Number Theory - Primes (Arabic)

Поділитися
Вставка
  • Опубліковано 1 січ 2025

КОМЕНТАРІ • 52

  • @mohamedhussien4013
    @mohamedhussien4013 2 роки тому +2

    Reverse thinking is awesome.
    Great tutorial as usual !!!.

  • @mustafaalaa5533
    @mustafaalaa5533 9 місяців тому

    بارك الله فيك يا دكتور بجد شرح غاية فالروعة وبيفدني جدا, والشيت نفسه خيييال, جزاك الله خيرا

  • @Matrix2220
    @Matrix2220 11 років тому

    جزاك الله خيرا , بجد حاجة حلو أننا نلاقي العرب بدقوا يدخلوا في الموضيع ديه و بدقوا يساعدوا بعض بالشروحات

  • @ماعنداللهخير-ل6ق
    @ماعنداللهخير-ل6ق 2 роки тому

    شرح رائع جدا وماتع
    جزاك الله خيرا يا دكتور ، نحبك في الله .

  • @Mohamed_Ayman_2024
    @Mohamed_Ayman_2024 11 місяців тому

    هو انا موعود اسمع فيديوهاتك بعد اما احل المسائل لوحدي ويطلع عيني بس فيديو روعه بجد🥰🥰

  • @ArabicCompetitiveProgramming
    @ArabicCompetitiveProgramming  11 років тому

    It is already on my channel. It is part of a playlist too.

  • @alialharbi9215
    @alialharbi9215 11 років тому

    Mash allah. those videos are awesome and very helpful it is not a complement it real. I really like the way you teach and it so understandable and I am student in USA and your videos helps me a lot, so please I would like from you make a series of videos in c++ because I was struggling to understand the concept in English.
    I am sorry for bothering you.
    finally Jazak allah khair.

  • @ayasaber2567
    @ayasaber2567 9 років тому

    جزاك الله خيرا على الشرح الرائع دا

  • @ArabicCompetitiveProgramming
    @ArabicCompetitiveProgramming  11 років тому

    I created 4 play lists with each category. Thanks for comment

  • @justtrainyourbrain8746
    @justtrainyourbrain8746 2 роки тому

    جزاكم الله خيرا

  • @SaeedAhmed-wl7pb
    @SaeedAhmed-wl7pb Рік тому

    أحسن الله إليكم

  • @AdelAliOmar
    @AdelAliOmar 11 років тому +2

    الفكرة جميلة جدا بس محتاجين مقدمة في البداية خالص تبقى lecture 0
    تشرح بس ليه محتاجين الالجوريذمس اصلا وايه فايدتها وتدي نبذة تاريخية عن الموضوع وكده

  • @SaadTaameOfficial
    @SaadTaameOfficial 10 років тому

    Right, the expected number of operations is often less than the worst case number of operations. A famous example is quick sort. That's why average case analysis makes sense.

  • @camelcase7074
    @camelcase7074 2 роки тому

    6:43
    مش الكومبايلر بيعمل أوبتميزيشن للكلام ده؟

  • @sengab1991
    @sengab1991 11 років тому

    sorry I will search for them thanks for your efforts :)

  • @yaramohamed440
    @yaramohamed440 11 років тому

    Really good
    Pls go on and stop doing more lessons

  • @Ghayth.Moustpha
    @Ghayth.Moustpha 6 років тому

    شكرا .. جزاك الله خيراَ

  • @ArabicCompetitiveProgramming
    @ArabicCompetitiveProgramming  11 років тому

    Select Max Quality + Full Screen.

  • @mhdtahawi
    @mhdtahawi 11 років тому +2

    I really can't thank you enough for these videos.
    just one little question.
    in your implementation for the sieve algorithm you considered 1 not to be a prime number.
    in the problem 406 in the uva website, prime cuts, 1 is a prime number.
    so it is a prime number or not? :)

    • @ahmedsalah7260
      @ahmedsalah7260 6 років тому

      nope 1 not prime but sometimes he consider 1 is prime but in fact 1 not prime

    • @raghibjawaid7894
      @raghibjawaid7894 4 роки тому

      Do you understand arabic

  • @muntaserabukhadijah2387
    @muntaserabukhadijah2387 6 років тому

    at 1:32
    how this equation work , n/logn ?
    for example x=10
    3= 10/log10
    * log base 2
    and for x= 1000
    the result will be 813 , big difference !

    • @ArabicCompetitiveProgramming
      @ArabicCompetitiveProgramming  6 років тому

      what is wrong about a big difference ?
      en.wikipedia.org/wiki/Prime_number_theorem

    • @mahmoudrifaat5325
      @mahmoudrifaat5325 6 років тому

      In "Concrete mathematics Book" prime number theorem is x/ln(x), and i think its more closer estimate

  • @mostafa12979
    @mostafa12979 3 роки тому

    ربنا يجازيك خير

  • @mhdtahawi
    @mhdtahawi 11 років тому

    Thanks for the great effort, just one little question,
    are these videos arranged in a playlist ?

  • @ArabicCompetitiveProgramming
    @ArabicCompetitiveProgramming  11 років тому

    SA,
    Check the comments on a video..links and problems to solve are there :)

  • @sengab1991
    @sengab1991 11 років тому

    I think you need to make a channel for this good videos

  • @mhdtahawi
    @mhdtahawi 11 років тому +1

    great videos thanks a lot, one more suggestion, and I hope I'm not being annoying :)
    a link for further information like a wikipedia link or recommended reading, sure students can find that on their own, but I'm also sure you may have something us student won't think of.
    and is the code you are using uploaded somewhere ?
    your efforts are really appreciated, do you need any help ?
    is there any thing we can do ?
    thanks again :)

  • @alialharbi9215
    @alialharbi9215 11 років тому

    Question?
    Do you have website?
    Thanks

  • @ArabicCompetitiveProgramming
    @ArabicCompetitiveProgramming  11 років тому

    JWA...for c++ concepts...this is so far from current scope, which is algorithms.

  • @Donbcheap
    @Donbcheap Рік тому

    وعليكم السلام ورحمة الله وبركاته

  • @deaaaboalnoor3757
    @deaaaboalnoor3757 11 років тому

    السلام عليكم
    اعتقد أنه يجب مراجعة شي
    fun3 isprime3 better than isprime4 becuse i try them and alwase fun3 be better
    could u plz tell me wy ??

  • @ahmed0xenon
    @ahmed0xenon 11 років тому

    رائع جدا

  • @abdelrahmanmounir2420
    @abdelrahmanmounir2420 8 років тому

    minute 12:10: why do i have to count the prime numbers in a separate loop? why not count it inside isPrime[i]?

    • @ArabicCompetitiveProgramming
      @ArabicCompetitiveProgramming  8 років тому +1

      Because the first loops don't iterate on all numbers....so we need something to iterate over all of them.
      e.g. if n = 10000, is prime condition is activated 100 times only

    • @abdelrahmanmounir2420
      @abdelrahmanmounir2420 8 років тому

      Thanks, dr!

  • @محمدرضا-ص5ظ6ع
    @محمدرضا-ص5ظ6ع 6 років тому

    Great

  • @amhanafy
    @amhanafy 5 років тому

    in 17:41 if you counted the pairs of before you and after you, you'll face overlapping in the last row when you count the first x left and right cells so we have 2 then the second x its left is the previous x right, how will you manage to remove the duplicates. I think every streak of Xs we have to remove its length -1 from the counting to avoid duplicates, am I right ??

  • @cybertech5102
    @cybertech5102 7 років тому

    what if i want to find the primes between 2 numbers and according to this algorithm ,
    the running time takes more than 15 seconds if the input is 1000000 and if the input is 1000000000 it will not work the vector size will be 1 billion is there any other way to get around that and thanks for this professional lesson

  • @alimamdouh1764
    @alimamdouh1764 8 років тому

    يعني يا دكتور لما اكون مثلا عاوز احسب ال prime number لغاية 9 ادور لغاية ال3 بس !

  • @ArabicCompetitiveProgramming
    @ArabicCompetitiveProgramming  11 років тому

    How did you test which one is better?

  • @karimfathi1955
    @karimfathi1955 4 роки тому

    هو انا لي في اللوب بجيب باقي القسمه عل الارقام ال primes بس ؟ مش المفروض اجرب علي كل الارقام الاصغر منه
    يعني في ال loop بدات من 3 وكل مره ب ازود 2 لي مش 1 !
    اعذرني علي الاستفسار ده

    • @ArabicCompetitiveProgramming
      @ArabicCompetitiveProgramming  4 роки тому +1

      الاول هنختبر الرقم يبقبل القسمة على 2
      لو لا
      بنختبر فقط الاعداد الفردية

  • @mostafaabdelsalam3632
    @mostafaabdelsalam3632 11 років тому

    1 is not a prime number for sure
    prime numbers have 2 divisors itself and 1
    But number 1 only divisible by 1 number so it's not :D
    search in wiki and u will understand

  • @mahmoudsalama4579
    @mahmoudsalama4579 9 років тому

    Hello Sir,
    why when i use the sieve algorithm and the input is 1000000 to count all the prime numbers in this range,it takes 20 seconds to count....?

    • @ArabicCompetitiveProgramming
      @ArabicCompetitiveProgramming  9 років тому +2

      +Mahmoud AbdelGhani something wrong! Not logical. 1 million is reasonable range..i expect maximum 2 seconds.
      anyway,,,try release mode NOT debug mode.

  • @tahamanna3600
    @tahamanna3600 2 роки тому

    جزاكم الله خيرا