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:01TudyMTudyMScore: 34,194Success
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:0133,97149,889,50627,902,0001,993,0002,367,488
2Apr 29, 2026 13:0133,99448,045,89726,924,0002,991,0002,371,584
3Apr 29, 2026 13:0134,17153,401,76827,064,0003,007,0002,326,528
4Apr 29, 2026 13:0134,19047,713,35928,083,0002,005,0002,379,776
5Apr 29, 2026 13:0134,19445,735,05727,082,0003,009,0002,363,392
6Apr 29, 2026 13:0134,21150,889,63829,103,0001,003,0002,375,680
7Apr 29, 2026 13:0134,24450,508,89029,131,0001,004,0002,371,584
8Apr 29, 2026 13:0134,25447,230,36729,140,0001,004,0002,367,488
9Apr 29, 2026 13:0134,40347,715,33528,257,0002,018,0002,363,392