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 19, 2026 06:42Victor MerckléVictor MerckléScore: 9,636Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2026 06:449,54716,482,8018,402,00002,113,536
2May 19, 2026 06:449,55119,080,3798,405,00002,117,632
3May 19, 2026 06:449,55716,071,0568,411,00002,113,536
4May 19, 2026 06:449,55919,132,9828,412,00002,113,536
5May 19, 2026 06:449,63616,120,4378,480,00002,113,536
6May 19, 2026 06:449,63716,091,9648,481,00002,117,632
7May 19, 2026 06:449,65216,405,0888,494,00002,113,536
8May 19, 2026 06:449,70016,086,7848,536,00002,117,632
9May 19, 2026 06:449,75716,269,9998,587,00002,113,536