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 listApr 24, 2026 17:52olliecrowolliecrowScore: 132,992Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 17:52132,590134,371,462113,663,0003,017,0002,449,408stderr
2Apr 24, 2026 17:52132,638135,020,439112,732,0003,990,0002,457,600stderr
3Apr 24, 2026 17:52132,688133,427,227112,774,0003,992,0002,461,696stderr
4Apr 24, 2026 17:52132,952138,234,890112,999,0003,999,0002,465,792stderr
5Apr 24, 2026 17:52132,992132,890,262114,033,0003,000,0002,453,504stderr
6Apr 24, 2026 17:52133,102135,330,258113,126,0004,004,0002,338,816stderr
7Apr 24, 2026 17:52133,382134,085,417114,368,0003,009,0002,453,504stderr
8Apr 24, 2026 17:52133,392139,422,929113,372,0004,013,0002,318,336stderr
9Apr 24, 2026 17:52133,547137,642,794114,509,0003,013,0002,457,600stderr