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 17, 2026 15:02Josu San MartinJosu San MartinScore: 22,875Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 15:0222,69739,621,56017,976,0001,997,0002,449,408
2Jan 17, 2026 15:0222,79940,283,40420,063,00002,445,312
3Jan 17, 2026 15:0222,80844,813,90318,064,0002,007,0002,449,408
4Jan 17, 2026 15:0222,87044,661,70519,120,0001,006,0002,441,216
5Jan 17, 2026 15:0222,87540,627,72718,117,0002,013,0002,449,408
6Jan 17, 2026 15:0222,88037,232,57418,121,0002,013,0002,449,408
7Jan 17, 2026 15:0222,88846,157,23118,127,0002,014,0002,449,408
8Jan 17, 2026 15:0222,91537,785,51518,149,0002,016,0002,445,312
9Jan 17, 2026 15:0222,93538,988,06218,165,0002,018,0002,449,408