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 11:08Victor MerckléVictor MerckléScore: 14,865Success
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 11:0914,79230,968,51511,015,0002,002,0002,326,528
2Apr 23, 2026 11:0914,81029,295,69511,028,0002,005,0002,396,160
3Apr 23, 2026 11:0914,82133,401,05711,037,0002,006,0002,383,872
4Apr 23, 2026 11:0914,85431,348,78011,061,0002,011,0002,392,064
5Apr 23, 2026 11:0914,86529,911,89911,070,0002,012,0002,318,336
6Apr 23, 2026 11:0915,04231,223,53812,219,0001,018,0002,387,968
7Apr 23, 2026 11:0915,04235,581,63613,237,00002,383,872
8Apr 23, 2026 11:0915,08730,454,19912,256,0001,021,0002,383,872
9Apr 23, 2026 11:0915,15130,608,88412,308,0001,025,0002,383,872