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 listSep 23, 2026 17:49Matthias GörgensMatthias GörgensScore: 50,581Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 23, 2026 17:5150,42754,725,24543,308,0001,068,0002,113,536
2Sep 23, 2026 17:5150,43455,363,09843,292,0001,090,0002,113,536
3Sep 23, 2026 17:5150,56954,857,87943,412,0001,089,0002,113,536
4Sep 23, 2026 17:5150,57954,877,90943,418,0001,092,0002,113,536
5Sep 23, 2026 17:5150,58154,831,67743,425,0001,087,0002,113,536
6Sep 23, 2026 17:5150,58255,371,57643,428,0001,085,0002,113,536
7Sep 23, 2026 17:5150,64054,993,02843,480,0001,084,0002,113,536
8Sep 23, 2026 17:5150,73454,911,53243,547,0001,099,0002,113,536
9Sep 23, 2026 17:5150,92354,986,51543,718,0001,095,0002,113,536