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 19:05vahookvahookScore: 5,002Success
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 19:064,94322,512,8453,263,0001,087,0002,277,376
2Jan 13, 2026 19:054,95524,980,8293,270,0001,090,0002,277,376
3Jan 13, 2026 19:064,96620,335,1613,278,0001,092,0002,494,464
4Jan 13, 2026 19:064,97518,217,6733,284,0001,094,0002,277,376
5Jan 13, 2026 19:064,97721,272,8783,285,0001,095,0002,277,376
6Jan 13, 2026 19:104,99120,056,0673,294,0001,098,0002,494,464
7Jan 13, 2026 19:105,00222,764,7783,302,0001,100,0002,498,560
8Jan 13, 2026 19:105,00222,279,3623,302,0001,100,0002,277,376
9Jan 13, 2026 19:125,00629,051,5773,304,0001,101,0002,277,376
10Jan 13, 2026 19:055,00924,569,3983,306,0001,102,0002,498,560
11Jan 13, 2026 19:125,00923,003,6593,306,0001,102,0002,498,560
12Jan 13, 2026 19:065,01018,437,8793,307,0001,102,0002,277,376
13Jan 13, 2026 19:125,01923,074,8613,313,0001,104,0002,494,464
14Jan 13, 2026 19:065,18823,073,8553,424,0001,141,0002,490,368
15Jan 13, 2026 19:056,06524,175,3153,202,0002,135,0002,281,472