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 03:26vahookvahookScore: 5,010Success
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 03:264,95922,339,9773,273,0001,091,0002,277,376
2Jan 13, 2026 03:264,98320,917,1513,289,0001,096,0002,277,376
3Jan 13, 2026 03:264,98624,087,7323,291,0001,097,0002,277,376
4Jan 13, 2026 03:265,00722,671,2373,305,0001,101,0002,277,376
5Jan 13, 2026 03:265,01020,748,5013,307,0001,102,0002,277,376
6Jan 13, 2026 03:265,01621,659,0643,311,0001,103,0002,277,376
7Jan 13, 2026 03:265,01920,198,0413,313,0001,104,0002,281,472
8Jan 13, 2026 03:265,02019,359,9013,314,0001,104,0002,277,376
9Jan 13, 2026 03:265,03921,979,2413,326,0001,108,0002,490,368