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 listJul 4, 2026 09:42Victor MerckléVictor MerckléScore: 8,844Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 09:458,71415,574,5417,669,00002,117,632stderr
2Jul 4, 2026 09:458,75615,541,8417,706,00002,117,632stderr
3Jul 4, 2026 09:458,83015,530,6827,771,00002,117,632stderr
4Jul 4, 2026 09:458,83115,914,5967,772,00002,117,632stderr
5Jul 4, 2026 09:458,84415,864,4387,783,00002,117,632stderr
6Jul 4, 2026 09:458,84815,500,9707,787,00002,117,632stderr
7Jul 4, 2026 09:458,85615,546,3987,794,00002,117,632stderr
8Jul 4, 2026 09:458,90215,898,5347,834,00002,117,632stderr
9Jul 4, 2026 09:458,93615,698,0987,864,00002,117,632stderr