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 listJan 18, 2026 05:23Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:26M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:2709,574,6671,426,00002,117,632expected "6442459076 ", got "2147485212 "
2May 17, 2026 07:27010,516,5551,540,00002,117,632expected "6442459076 ", got "2147485212 "
3May 17, 2026 07:27010,690,3221,438,00002,117,632expected "6442459076 ", got "2147485212 "
4Jan 18, 2026 05:2011,27025,018,9456,943,0002,975,0002,281,472
5Jan 18, 2026 05:2311,29924,421,0918,839,0001,104,0002,277,376
6Jan 18, 2026 05:2011,30325,293,1407,737,0002,210,0002,523,136
7Jan 18, 2026 05:2311,30330,725,0437,958,0001,989,0002,265,088
8Jan 18, 2026 05:2311,30732,209,9366,965,0002,985,0002,527,232
9Jan 18, 2026 05:2311,31624,843,5146,971,0002,987,0002,375,680
10Jan 18, 2026 05:2311,34129,368,9747,984,0001,996,0002,379,776
11Jan 18, 2026 05:2311,38823,056,3827,015,0003,006,0002,375,680
12Jan 18, 2026 05:2011,40926,703,9968,032,0002,008,0002,277,376
13Jan 18, 2026 05:2311,41624,177,4477,032,0003,014,0002,527,232
14Jan 18, 2026 05:2311,44426,629,2287,050,0003,021,0002,281,472
15Jan 18, 2026 05:2311,56825,959,4439,162,0001,018,0002,269,184