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 24, 2026 18:21Victor MerckléVictor MerckléScore: 10,698Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 18:2510,64322,949,6498,326,0001,040,0002,469,888
2Apr 24, 2026 18:2510,65929,445,9238,338,0001,042,0002,465,792
3Apr 24, 2026 18:2510,68227,751,1028,357,0001,044,0002,469,888
4Apr 24, 2026 18:2510,68528,763,4878,359,0001,044,0002,465,792
5Apr 24, 2026 18:2510,69823,420,6778,369,0001,046,0002,465,792
6Apr 24, 2026 18:2510,69825,474,5318,369,0001,046,0002,465,792
7Apr 24, 2026 18:2510,70926,521,2888,377,0001,047,0002,473,984
8Apr 24, 2026 18:2510,74630,699,4988,407,0001,050,0002,469,888
9Apr 24, 2026 18:2510,79224,651,0958,442,0001,055,0002,469,888