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 10:41Dominique GarmierDominique GarmierScore: 11,723Success
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 10:4311,65628,434,6869,233,0001,025,0002,383,872
2Apr 24, 2026 10:4311,68728,507,2379,257,0001,028,0002,383,872
3Apr 24, 2026 10:4311,70529,074,4049,271,0001,030,0002,383,872
4Apr 24, 2026 10:4311,72025,454,8269,283,0001,031,0002,383,872
5Apr 24, 2026 10:4311,72326,439,7959,286,0001,031,0002,383,872
6Apr 24, 2026 10:4311,72926,118,1569,290,0001,032,0002,379,776
7Apr 24, 2026 10:4311,77329,973,70210,361,00002,379,776
8Apr 24, 2026 10:4311,78027,206,0119,331,0001,036,0002,318,336
9Apr 24, 2026 10:4311,86127,213,7019,395,0001,043,0002,392,064