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 12, 2026 15:50vahookvahookScore: 5,368Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 12, 2026 15:505,25623,259,5073,469,0001,156,0002,437,120
2Jan 12, 2026 15:505,28920,256,9334,654,00002,441,216
3Jan 12, 2026 15:505,31820,241,2193,510,0001,170,0002,535,424
4Jan 12, 2026 15:505,34425,156,0164,703,00002,535,424
5Jan 12, 2026 15:505,36820,494,1004,724,00002,445,312
6Jan 12, 2026 15:505,38023,082,4413,551,0001,183,0002,535,424
7Jan 12, 2026 15:505,43020,255,6614,778,00002,326,528
8Jan 12, 2026 15:505,46025,382,5894,805,00002,445,312
9Jan 12, 2026 15:505,46822,479,3003,609,0001,203,0002,519,040