ended3월 15일· 1 sources

Generating All 32-Bit Primes (Part I)

32비트 소수 전체 생성하기 (Part I)

Why it matters

The article describes building a C program for Linux that generates all prime numbers fitting in a 32-bit unsigned integer and writes them to a binary file in little-endian format. The initial approach uses trial division, checking each odd number for divisibility by all known primes up to its square root, yielding O(n^(3/2)/ln(n)) time complexity. The complete implementation runs in approximately 24 minutes and 20 seconds on the author's system.

1
Sources
+0
24h
Growth
187d
Active
32-bit primestrial divisionprime generationuint32_tLinux

Sources

Related Issues