Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listJan 18, 2026 06:09mgildermgilderScore: 91,538Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2026 06:0991,078102,715,73878,146,0002,003,0002,490,368
2Jan 18, 2026 06:0991,452106,944,48279,473,0001,005,0002,289,664
3Jan 18, 2026 06:0991,460102,376,58979,479,0001,006,0002,367,488
4Jan 18, 2026 06:0991,490103,249,42279,505,0001,006,0002,359,296
5Jan 18, 2026 06:0991,538103,822,22180,553,00002,289,664
6Jan 18, 2026 06:0991,558103,588,06779,564,0001,007,0002,289,664
7Jan 18, 2026 06:0991,567109,435,56079,572,0001,007,0002,289,664
8Jan 18, 2026 06:0991,715110,743,08680,709,00002,371,584
9Jan 18, 2026 06:0991,734108,603,18379,717,0001,009,0002,453,504