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 23, 2026 08:39Victor MerckléVictor MerckléScore: 15,310Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 08:4015,25630,614,65512,394,0001,032,0002,392,064
2Apr 23, 2026 08:4015,27929,673,07212,412,0001,034,0002,383,872
3Apr 23, 2026 08:4015,28128,712,42312,414,0001,034,0002,392,064
4Apr 23, 2026 08:4015,29029,537,74612,421,0001,035,0002,379,776
5Apr 23, 2026 08:4015,31027,786,11912,437,0001,036,0002,375,680
6Apr 23, 2026 08:4015,32830,101,19912,452,0001,037,0002,375,680
7Apr 23, 2026 08:4015,34432,240,37312,465,0001,038,0002,387,968
8Apr 23, 2026 08:4015,35131,968,61711,431,0002,078,0002,383,872
9Apr 23, 2026 08:4015,37531,421,73312,490,0001,040,0002,383,872