TheAlgorithms-C/misc
webdesignbydivyansh b2def5ca0e
feat: created prime_seive.c (#708)
* created prime_seive.c

This function counts the number of prime numbers in O(nlogn) time.

* Apply suggestions from code review

Co-authored-by: David Leal <halfpacho@gmail.com>

* updating DIRECTORY.md

* updated prime_seive.c

* Update misc/prime_seive.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* added more changes

please take a look at it

* changed 1000000 to MAX_SIZE

* updated line 10

* changed the code back to original

* eliminated the problem of MAX_SIZE

* added for loop to initialise all elements to 0

* made the changes

* changed the code back to original

i have changed my code back to original as some tests were failing

* removed extra spaces & edited some lines

* added new global variable

* added extra space

* added parameter & return statement

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-11-26 06:34:21 -05:00
..
CMakeLists.txt find openmp declared required only once 2020-05-31 10:49:26 -04:00
armstrong_number.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
cantor_set.c use Cantor variable name and not contour 2020-06-30 13:52:43 -04:00
cartesian_to_polar.c set initial value to avoid error 2020-07-10 23:59:51 -04:00
catalan.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
collatz.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
demonetization.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
factorial.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
factorial_large_number.c fixed documentations 2020-06-28 15:18:52 -04:00
factorial_trailing_zeroes.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
fibonacci.c formatting filenames 909e15d8be 2020-05-30 18:26:19 +00:00
fibonacci_dp.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
fibonacci_fast.c [bugs & docs] lots of documentation and bug fixes (#554) 2020-07-04 15:05:30 -04:00
gcd.c formatting filenames 909e15d8be 2020-05-30 18:26:19 +00:00
is_armstrong.c formatting filenames 909e15d8be 2020-05-30 18:26:19 +00:00
large_factorials.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
lcm.c formatting filenames 909e15d8be 2020-05-30 18:26:19 +00:00
lerp.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
lexicographic_permutations.c fix LGTM - limit malloc range 2020-06-28 15:57:00 -04:00
longest_subsequence.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
mirror.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
palindrome.c add isPalindrome function 2020-07-14 09:28:34 +08:00
pid.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
poly_add.c feat:Add Polynomial Addition (#600) 2020-09-18 12:23:49 -05:00
prime.c * fix doc 2020-08-14 08:11:57 +08:00
prime_factoriziation.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
prime_seive.c feat: created prime_seive.c (#708) 2020-11-26 06:34:21 -05:00
quartile.c formatting filenames 909e15d8be 2020-05-30 18:26:19 +00:00
rselect.c code cleanup to prevent gcc warnings 2020-04-08 09:41:12 -04:00
strong_number.c clang-tidy fixes for c259ac4c32 2020-08-14 00:14:30 +00:00
sudoku_solver.c [bugs & docs] lots of documentation and bug fixes (#554) 2020-07-04 15:05:30 -04:00
tower_of_hanoi.c less code 2020-06-30 16:27:19 +08:00
union_find.c fix lgtm error and add basic docs 2020-07-11 00:10:22 -04:00