Closest Prime Numbers in Range | Leetcode

This video explains about finding the pair of closest prime number pairs with minimum difference. I have shown the optimal primality test technique using the sieve of eratosthenes. Stay tuned till the end for the bonus point.
----------------------------------------------------------------------------------------------------------------------------------------------------------------
🟣 JOIN our 𝐋𝐈𝐕𝐄 𝐢𝐧𝐭𝐞𝐫𝐯𝐢𝐞𝐰 𝐭𝐫𝐚𝐢𝐧𝐢𝐧𝐠 𝐩𝐫𝐨𝐠𝐫𝐚𝐦 through whatsapp query: +91 8918633037
🟣 𝐂𝐡𝐞𝐜𝐤𝐨𝐮𝐭 𝐚𝐥𝐥 𝐨𝐮𝐫 𝐂𝐨𝐮𝐫𝐬𝐞𝐬: techdose.co.in/
🔵 LinkedIn: / surya-pratap-kahar
🔴 INSTAGRAM: / techdose_official
🟢 𝐓𝐞𝐜𝐡𝐝𝐨𝐬𝐞-𝟏𝟎𝟎 𝐬𝐡𝐞𝐞𝐭: docs.google.com/spreadsheets/...
---------------------------------------------------------------------------------------------------------------------------------------------------------------
Sieve of Eratosthenes: • Sieve of eratosthenes
𝐂𝐎𝐃𝐄 𝐋𝐈𝐍𝐊: gist.github.com/SuryaPratapK/...

Пікірлер: 4

  • @JavabyMk
    @JavabyMk3 ай бұрын

    Nice 👍

  • @Khushboo12019
    @Khushboo120192 ай бұрын

    here (b-a) should be greater than primes[i] - primes[i-1] then will update band a , seems by mistakes you have written opposite .

  • @monstergamingyt9402
    @monstergamingyt94023 ай бұрын

    I know you since you're born

  • @monstergamingyt9402
    @monstergamingyt94023 ай бұрын

    Apka Ghar Jhanjra colony me hai na