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 18, 2026 16:07M-RochatM-RochatScore: 26,894Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2026 16:1226,64434,689,61622,314,0001,133,0002,117,632
2May 18, 2026 16:1226,66835,134,25322,334,0001,134,0002,117,632
3May 18, 2026 16:1226,78235,647,26222,444,0001,125,0002,113,536
4May 18, 2026 16:1226,85635,387,26522,464,0001,170,0002,113,536
5May 18, 2026 16:1226,89435,834,99622,518,0001,149,0002,113,536
6May 18, 2026 16:1226,90635,722,49422,540,0001,138,0002,113,536
7May 18, 2026 16:1226,91034,235,17022,544,0001,137,0002,113,536
8May 18, 2026 16:1226,94233,967,04022,559,0001,150,0002,113,536
9May 18, 2026 16:1227,23635,514,97022,827,0001,141,0002,113,536