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 listMay 16, 2026 22:04M-RochatM-RochatScore: 30,675Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2026 22:1430,52635,534,98625,725,0001,138,0002,113,536
2May 16, 2026 22:1430,57736,566,38525,793,0001,115,0002,113,536
3May 16, 2026 22:1430,60238,466,72425,809,0001,121,0002,113,536
4May 16, 2026 22:1430,67037,880,33225,877,0001,113,0002,113,536
5May 16, 2026 22:1430,67536,993,83925,871,0001,123,0002,113,536
6May 16, 2026 22:1430,67937,360,93625,873,0001,125,0002,113,536
7May 16, 2026 22:1430,77536,932,61725,974,0001,108,0002,113,536
8May 16, 2026 22:1430,79236,395,90825,970,0001,127,0002,113,536
9May 16, 2026 22:1430,85636,395,45326,000,0001,154,0002,113,536