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 listMar 25, 2026 06:22Dominique GarmierDominique GarmierScore: 49,832Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 25, 2026 08:4549,58563,267,89942,621,0001,014,0002,285,568
2Mar 25, 2026 06:2249,66173,185,06343,702,00002,347,008
3Mar 25, 2026 08:4549,67367,829,34543,712,00002,347,008
4Mar 25, 2026 06:2249,83279,437,48041,859,0001,993,0002,347,008
5Mar 25, 2026 06:2249,87869,790,97843,893,00002,334,720
6Mar 25, 2026 08:4549,88470,127,03742,901,000997,0002,334,720