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 20, 2026 12:36Dominique GarmierDominique GarmierScore: 10,932Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 12:3710,90225,165,8158,528,0001,066,0002,355,200
2Apr 20, 2026 12:3710,90429,344,8928,530,0001,066,0002,355,200
3Apr 20, 2026 12:3710,90429,329,8268,530,0001,066,0002,355,200
4Apr 20, 2026 12:3710,92529,199,2967,478,0002,136,0002,359,296
5Apr 20, 2026 12:3710,93224,675,3487,483,0002,138,0002,363,392
6Apr 20, 2026 12:3710,95122,513,8538,567,0001,070,0002,359,296
7Apr 20, 2026 12:3711,01427,539,7658,616,0001,077,0002,367,488
8Apr 20, 2026 12:3711,05924,585,4348,651,0001,081,0002,277,376
9Apr 20, 2026 12:3711,56925,528,7177,127,0003,054,0002,273,280