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 21, 2026 07:02Dominique GarmierDominique GarmierScore: 12,839Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 07:0312,67132,830,4739,124,0002,027,0002,375,680
2Apr 21, 2026 07:0312,79427,170,34510,236,0001,023,0002,383,872
3Apr 21, 2026 07:0312,80227,969,60111,266,00002,379,776
4Apr 21, 2026 07:0312,80327,982,63510,243,0001,024,0002,375,680
5Apr 21, 2026 07:0312,83930,639,16910,272,0001,027,0002,273,280
6Apr 21, 2026 07:0312,88028,199,88710,305,0001,030,0002,519,040
7Apr 21, 2026 07:0312,88228,805,28810,307,0001,030,0002,375,680
8Apr 21, 2026 07:0312,92729,576,14310,342,0001,034,0002,273,280
9Apr 21, 2026 07:0312,94325,210,16110,355,0001,035,0002,428,928