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 29, 2026 13:46olliecrowolliecrowScore: 14,111Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 13:4814,08231,945,68511,361,0001,032,0002,334,720stderr
2Apr 29, 2026 13:4814,08831,636,34311,365,0001,033,0002,338,816stderr
3Apr 29, 2026 13:4814,09331,828,80011,369,0001,033,0002,338,816stderr
4Apr 29, 2026 13:4814,10732,755,00011,381,0001,034,0002,334,720stderr
5Apr 29, 2026 13:4814,11127,898,22211,384,0001,034,0002,338,816stderr
6Apr 29, 2026 13:4814,16031,548,58811,423,0001,038,0002,334,720stderr
7Apr 29, 2026 13:4814,18929,516,44911,447,0001,040,0002,338,816stderr
8Apr 29, 2026 13:4814,21532,108,86412,510,00002,338,816stderr
9Apr 29, 2026 13:4814,29435,938,75411,531,0001,048,0002,342,912stderr