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 14, 2026 15:33Dominique GarmierDominique GarmierScore: 58,741Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 14, 2026 15:3358,47076,454,54550,446,0001,008,0002,277,376
2Mar 14, 2026 15:3358,61575,885,39750,570,0001,011,0002,289,664
3Mar 14, 2026 15:3358,71678,389,05151,670,00002,293,760
4Mar 14, 2026 15:3358,74178,675,47250,679,0001,013,0002,281,472
5Mar 14, 2026 15:3358,75176,131,53650,688,0001,013,0002,277,376
6Mar 14, 2026 15:3358,98077,933,37249,906,0001,996,0002,367,488