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 27, 2026 10:49Dominique GarmierDominique GarmierScore: 624,641Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 27, 2026 10:49624,485577,824,401548,547,0001,000,0002,363,392
2Mar 27, 2026 18:08624,630573,490,718547,676,0001,998,0002,334,720
3Mar 27, 2026 18:08624,639579,181,154546,684,0002,998,0002,367,488
4Mar 27, 2026 10:49624,641574,050,578548,685,000999,0002,334,720
5Mar 27, 2026 10:49624,791579,573,965548,817,000999,0002,404,352
6Mar 27, 2026 18:08625,538581,676,981550,473,00002,404,352