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 10:37Victor MerckléVictor MerckléScore: 4,580Success
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 10:404,39711,668,5103,870,00002,117,632stderr
2Jul 4, 2026 10:404,40911,648,5793,880,00002,117,632stderr
3Jul 4, 2026 10:404,42911,657,7343,898,00002,117,632stderr
4Jul 4, 2026 10:404,44811,723,6833,915,00002,117,632stderr
5Jul 4, 2026 10:404,58011,962,8404,031,00002,117,632stderr
6Jul 4, 2026 10:404,58012,338,6314,031,00002,117,632stderr
7Jul 4, 2026 10:404,62612,131,6334,071,00002,117,632stderr
8Jul 4, 2026 10:404,82612,482,8454,247,00002,117,632stderr
9Jul 4, 2026 10:404,84412,068,7314,263,00002,117,632stderr