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 16, 2026 09:39Dominique GarmierDominique GarmierScore: 34,117Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 16, 2026 09:3933,98557,979,44227,914,0001,993,0002,281,472
2Mar 16, 2026 14:3033,98662,082,24829,908,00002,281,472
3Mar 16, 2026 14:3034,07654,390,24727,988,0001,999,0002,281,472
4Mar 16, 2026 09:3934,11754,172,05928,022,0002,001,0002,387,968
5Mar 16, 2026 09:3934,15956,157,02028,056,0002,004,0002,281,472
6Mar 16, 2026 14:3034,37455,701,66528,233,0002,016,0002,379,776