rishabhgarg25699 / Competitive-Programming

This repository contains some useful codes, techniques, algorithms and problem solutions helpful in Competitive Coding. Join with me on telegram group https://t.me/joinchat/GL4Y8RREZbz-Cp78R869CQ
63 stars 120 forks source link

Update Segmented_Sieve.cpp #281

Closed Mintuagarwal closed 3 years ago

Mintuagarwal commented 3 years ago

Updated NlogN simpleSieve to NloglogN and more optimizations like check odd primes only and, tested on my system for given input, works fine.