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 listMar 28, 2026 09:23Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:28M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:28011,884,1062,301,00002,117,632expected "6442459076 ", got "11794192309 "
2May 17, 2026 07:28012,889,7602,402,00002,117,632expected "6442459076 ", got "11794192309 "
3May 17, 2026 07:28012,802,7102,515,00002,117,632expected "6442459076 ", got "11794192309 "
4Mar 28, 2026 09:2310,23929,990,8297,008,0002,002,0002,281,472
5Mar 28, 2026 09:2310,25329,715,0437,018,0002,005,0002,281,472
6Mar 28, 2026 09:2310,30023,503,6507,050,0002,014,0002,375,680
7Mar 28, 2026 09:2310,30928,045,4228,064,0001,008,0002,387,968
8Mar 28, 2026 09:2310,33026,652,2888,080,0001,010,0002,428,928
9Mar 28, 2026 09:2310,39526,012,6427,115,0002,033,0002,433,024
10Mar 28, 2026 09:2310,41927,084,8117,132,0002,037,0002,281,472
11Mar 28, 2026 09:2310,51427,097,2847,196,0002,056,0002,416,640
12Mar 28, 2026 09:2310,56025,386,1037,228,0002,065,0002,420,736