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 13:59zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:18M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:1809,170,5261,106,00002,113,536expected "6442459076 ", got "2305422782 "
2May 17, 2026 05:1808,418,8921,103,00002,113,536expected "6442459076 ", got "2305422782 "
3May 17, 2026 05:1808,789,5601,099,00002,113,536expected "6442459076 ", got "2305422782 "
4Feb 10, 2026 14:013,32421,244,4241,950,000975,0002,408,448
5Feb 10, 2026 14:003,32618,461,1192,927,00002,412,544
6Feb 10, 2026 13:593,32716,317,6781,952,000976,0002,412,544
7Feb 10, 2026 14:013,32719,655,6831,952,000976,0002,400,256
8Feb 10, 2026 13:593,32821,015,5902,929,00002,404,352
9Feb 10, 2026 14:003,32820,010,5681,953,000976,0002,408,448
10Feb 10, 2026 13:593,34120,036,8462,940,00002,416,640
11Feb 10, 2026 14:013,35921,081,9211,971,000985,0002,400,256
12Feb 10, 2026 14:003,50219,171,6482,055,0001,027,0002,510,848