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 20:08Victor MerckléVictor MerckléScore: 24,100Success
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 20:0923,45735,507,49519,611,0001,032,0002,383,872
2Apr 21, 2026 20:0923,48837,511,68219,637,0001,033,0002,383,872
3Apr 21, 2026 20:0923,78637,007,20018,939,0001,993,0002,379,776
4Apr 21, 2026 20:0924,03142,956,24920,141,0001,007,0002,375,680
5Apr 21, 2026 20:0924,10038,352,60320,199,0001,009,0002,383,872
6Apr 21, 2026 20:0924,11537,060,38419,201,0002,021,0002,387,968
7Apr 21, 2026 20:0924,14439,277,04220,236,0001,011,0002,383,872
8Apr 21, 2026 20:0924,25242,520,55820,326,0001,016,0002,383,872
9Apr 21, 2026 20:0924,27742,926,38520,347,0001,017,0002,379,776