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 28, 2026 12:30Dominique GarmierDominique GarmierScore: 10,531Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 12:3110,35425,703,4357,087,0002,025,0002,322,432
2Apr 28, 2026 12:3110,47227,217,5148,192,0001,024,0002,383,872
3Apr 28, 2026 12:3110,51030,530,0158,222,0001,027,0002,326,528
4Apr 28, 2026 12:3110,52028,241,0038,230,0001,028,0002,383,872
5Apr 28, 2026 12:3110,53125,028,0948,239,0001,029,0002,326,528
6Apr 28, 2026 12:3110,58128,621,2548,278,0001,034,0002,387,968
7Apr 28, 2026 12:3110,59227,237,7708,286,0001,035,0002,318,336
8Apr 28, 2026 12:3110,59728,589,3088,290,0001,036,0002,379,776
9Apr 28, 2026 12:3110,62930,704,2578,315,0001,039,0002,383,872