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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:43M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:4308,211,0661,096,00002,113,536expected "6442459076 ", got "2305422782 "
2May 17, 2026 06:4308,580,9801,015,00002,113,536expected "6442459076 ", got "2305422782 "
3May 17, 2026 06:43011,123,2311,037,00002,113,536expected "6442459076 ", got "2305422782 "
4Feb 10, 2026 14:123,31716,110,9622,919,00002,400,256
5Feb 10, 2026 14:113,33122,021,0251,954,000977,0002,404,352
6Feb 10, 2026 14:123,38520,324,2331,986,000993,0002,408,448
7Feb 10, 2026 14:113,41717,814,2332,005,0001,002,0002,408,448
8Feb 10, 2026 14:133,43423,614,8943,022,00002,404,352
9Feb 10, 2026 14:123,43621,306,9312,016,0001,008,0002,277,376
10Feb 10, 2026 14:133,44119,067,8772,019,0001,009,0002,392,064
11Feb 10, 2026 14:123,44122,399,0582,019,0001,009,0002,404,352
12Feb 10, 2026 14:133,46121,510,8732,031,0001,015,0002,404,352
13Feb 10, 2026 14:123,46418,517,8742,032,0001,016,0002,408,448
14Feb 10, 2026 14:113,47022,192,5562,036,0001,018,0002,535,424
15Feb 10, 2026 14:123,47420,884,2062,038,0001,019,0002,400,256
16Feb 10, 2026 14:123,54216,757,3772,078,0001,039,0002,404,352
17Feb 10, 2026 14:124,14519,473,1773,648,00002,408,448
18Feb 10, 2026 14:124,46822,118,7242,949,000983,0002,519,040