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 listApr 28, 2026 17:43olliecrowolliecrowScore: 11,850Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 17:4411,74629,557,6649,304,0001,033,0002,424,832
2Apr 28, 2026 17:4411,75327,919,3279,309,0001,034,0002,494,464
3Apr 28, 2026 17:4411,75929,802,0939,314,0001,034,0002,428,928
4Apr 28, 2026 17:4411,77029,356,8129,323,0001,035,0002,420,736
5Apr 28, 2026 17:4411,85026,415,3549,386,0001,042,0002,330,624
6Apr 28, 2026 17:4411,86528,380,0399,398,0001,044,0002,424,832
7Apr 28, 2026 17:4412,14429,509,1399,619,0001,068,0002,433,024
8Apr 28, 2026 17:4412,20530,012,7689,667,0001,074,0002,465,792
9Apr 28, 2026 17:4412,38430,530,0177,926,0002,972,0002,433,024