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 09:33Victor MerckléVictor MerckléScore: 15,330Success
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 09:3415,25226,765,90912,390,0001,032,0002,392,064
2Apr 23, 2026 09:3415,31530,494,52912,442,0001,036,0002,314,240
3Apr 23, 2026 09:3415,32130,176,38512,446,0001,037,0002,383,872
4Apr 23, 2026 09:3415,32833,283,36113,489,00002,375,680
5Apr 23, 2026 09:3415,33035,262,67412,454,0001,037,0002,383,872
6Apr 23, 2026 09:3415,33428,690,33312,456,0001,038,0002,387,968
7Apr 23, 2026 09:3415,37135,850,00412,487,0001,040,0002,387,968
8Apr 23, 2026 09:3415,37525,722,84612,490,0001,040,0002,453,504
9Apr 23, 2026 09:3415,42933,453,55412,534,0001,044,0002,383,872