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 listFeb 12, 2026 03:14zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:39M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:3908,424,5571,005,00002,113,536expected "6442459076 ", got "2305422782 "
2May 17, 2026 07:3908,321,5081,002,00002,113,536expected "6442459076 ", got "2305422782 "
3May 17, 2026 07:3908,278,2271,001,00002,113,536expected "6442459076 ", got "2305422782 "
4Feb 12, 2026 03:143,46523,524,6292,033,0001,016,0002,392,064
5Feb 12, 2026 03:153,48418,803,6362,044,0001,022,0002,392,064
6Feb 12, 2026 03:153,53518,769,3192,074,0001,037,0002,387,968
7Feb 12, 2026 03:153,53920,523,0752,076,0001,038,0002,379,776
8Feb 12, 2026 03:143,57316,106,7912,096,0001,048,0002,383,872
9Feb 12, 2026 03:143,89420,654,0123,427,00002,383,872