اريد هذان البرنامجان ب c++,ولو حتى اللي فهم المطلوب من السؤال يقول لي لانه ما اعرف المطلوب اصلا
Write a function that removes all duplicates in array A of N times.Return the number of itemes that remain in A.your function must run in O(Nlog N)averge time (use quicksort as a preprocessing step )
The sieve of Eratosthenenes is a method used to compute all primes less than N
Being by making a table of integers from 2to N.FIND THE SMAALLEST INTGER ,i,That
Is not acorossed out .THEN print I and cross out i,2i,3i..when i>N,the algorimm terminates