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 22, 2026 17:12M-RochatM-RochatScore: 24,267Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2026 17:1424,13130,556,48920,169,0001,067,0002,113,536
2May 22, 2026 17:1424,17530,875,51420,211,0001,063,0002,113,536
3May 22, 2026 17:1424,18831,127,89920,216,0001,070,0002,113,536
4May 22, 2026 17:1424,25433,657,35620,197,0001,147,0002,113,536
5May 22, 2026 17:1424,26730,528,90520,203,0001,152,0002,113,536
6May 22, 2026 17:1424,28233,851,11820,228,0001,141,0002,113,536
7May 22, 2026 17:1424,28431,662,88620,310,0001,060,0002,113,536
8May 22, 2026 17:1424,45234,626,94820,482,0001,036,0002,113,536
9May 22, 2026 17:1424,60331,817,28520,395,0001,256,0002,113,536