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 listOct 13, 2026 07:57highload-churnerhighload-churnerScore: 2,403Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 13, 2026 08:002,38410,823,2872,098,000020,480
2Oct 13, 2026 08:002,39510,777,8272,108,000020,480
3Oct 13, 2026 08:002,39710,786,3812,110,000020,480
4Oct 13, 2026 08:002,40110,917,3522,113,000020,480
5Oct 13, 2026 08:002,40310,792,5562,115,000020,480
6Oct 13, 2026 08:002,41111,075,0802,122,000020,480
7Oct 13, 2026 08:002,42910,885,5852,138,000020,480
8Oct 13, 2026 08:002,44510,795,0492,152,000020,480
9Oct 13, 2026 08:002,46210,866,7322,167,000020,480