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 16, 2026 03:35Josu San MartinJosu San MartinScore: 50,519Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 16, 2026 03:3450,32773,631,56043,282,0001,006,0002,449,408
2Jan 16, 2026 03:3450,37866,476,45843,326,0001,007,0002,535,424
3Jan 16, 2026 03:3450,41367,618,68643,355,0001,008,0002,535,424
4Jan 16, 2026 03:3450,49963,267,79544,439,00002,437,120
5Jan 16, 2026 03:3450,50965,227,01643,438,0001,010,0002,445,312
6Jan 16, 2026 03:3450,51465,761,07144,452,00002,445,312
7Jan 16, 2026 03:3450,51968,645,99744,457,00002,535,424
8Jan 16, 2026 03:3450,52469,381,68943,451,0001,010,0002,535,424
9Jan 16, 2026 03:3550,54469,143,18244,479,00002,273,280
10Jan 16, 2026 03:3550,56567,373,34143,486,0001,011,0002,441,216
11Jan 16, 2026 03:3550,58367,951,76743,502,0001,011,0002,535,424
12Jan 16, 2026 03:3450,63970,641,24043,550,0001,012,0002,437,120