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 21:14M-RochatM-RochatScore: 38,181Success
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 21:1638,01841,910,49632,431,0001,025,0002,113,536
2May 16, 2026 21:1638,05742,448,08532,360,0001,131,0002,113,536
3May 16, 2026 21:1638,07343,052,20532,356,0001,149,0002,113,536
4May 16, 2026 21:1638,08742,185,41332,370,0001,147,0002,113,536
5May 16, 2026 21:1638,18143,359,21032,472,0001,128,0002,113,536
6May 16, 2026 21:1638,18142,052,79132,446,0001,154,0002,113,536
7May 16, 2026 21:1638,20742,859,80832,467,0001,156,0002,113,536
8May 16, 2026 21:1638,21842,411,22132,503,0001,129,0002,113,536
9May 16, 2026 21:1638,26342,276,40932,530,0001,142,0002,113,536