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 11, 2026 04:46vahookvahookScore: 5,594Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 11, 2026 04:465,57728,410,7333,927,000981,0002,535,424
2Jan 11, 2026 04:465,58826,661,1903,934,000983,0002,535,424
3Jan 11, 2026 04:465,59222,248,8192,953,0001,968,0002,449,408
4Jan 11, 2026 04:465,59422,438,8742,954,0001,969,0002,449,408
5Jan 11, 2026 04:465,59418,871,6373,939,000984,0002,441,216
6Jan 11, 2026 04:465,59821,587,2463,941,000985,0002,445,312
7Jan 11, 2026 04:465,59926,458,1004,927,00002,453,504
8Jan 11, 2026 04:465,65521,894,2703,981,000995,0002,273,280
9Jan 11, 2026 04:465,68219,724,0704,000,0001,000,0002,441,216