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 30, 2026 03:49olliecrowolliecrowScore: 11,848Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 03:5011,68233,155,7659,253,0001,028,0002,375,680
2Apr 30, 2026 03:5011,69827,319,0289,266,0001,029,0002,326,528
3Apr 30, 2026 03:5011,73627,140,7729,296,0001,032,0002,330,624
4Apr 30, 2026 03:5011,75731,701,4709,313,0001,034,0002,371,584
5Apr 30, 2026 03:5011,84828,634,5069,385,0001,042,0002,375,680
6Apr 30, 2026 03:5011,84824,199,1019,385,0001,042,0002,363,392
7Apr 30, 2026 03:5011,87130,668,2819,403,0001,044,0002,383,872
8Apr 30, 2026 03:5011,89736,519,5259,423,0001,047,0002,363,392
9Apr 30, 2026 03:5012,85029,639,43811,308,00002,433,024