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 13, 2026 23:44vahookvahookScore: 4,736Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 13, 2026 23:434,68222,190,0432,060,0002,060,0002,494,464
2Jan 13, 2026 23:434,69320,048,3712,065,0002,065,0002,490,368
3Jan 13, 2026 23:434,70218,468,7642,069,0002,069,0002,498,560
4Jan 13, 2026 23:434,70718,078,1022,071,0002,071,0002,277,376
5Jan 13, 2026 23:444,73221,652,9692,082,0002,082,0002,494,464
6Jan 13, 2026 23:434,73419,702,4102,083,0002,083,0002,498,560
7Jan 13, 2026 23:434,73623,110,6262,084,0002,084,0002,277,376
8Jan 13, 2026 23:434,73622,000,2192,084,0002,084,0002,281,472
9Jan 13, 2026 23:444,74518,444,2632,088,0002,088,0002,277,376
10Jan 13, 2026 23:434,74820,607,2952,089,0002,089,0002,498,560
11Jan 13, 2026 23:444,76619,883,8742,097,0002,097,0002,277,376
12Jan 13, 2026 23:434,91119,753,5482,161,0002,161,0002,494,464