Thuật toán CTDL Disjoint set - ~O(3N+5)

Thuật toán sàng nguyên tố (Eratosthenes) - O(NloglogN)

Nhận xét