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 listMay 11, 2026 22:00Aleksei ShahoikaAleksei ShahoikaError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:44M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:45012,785,5372,450,00002,117,632expected "6442459076 ", got "6442458748 "
2May 17, 2026 07:45012,885,6732,567,00002,117,632expected "6442459076 ", got "6442458748 "
3May 17, 2026 07:45012,804,8152,550,00002,117,632expected "6442459076 ", got "6442458748 "
4May 11, 2026 22:0312,86021,306,02411,317,00002,113,536
5May 11, 2026 22:0312,86220,530,03911,319,00002,113,536
6May 11, 2026 22:0312,87520,723,38411,330,00002,113,536
7May 11, 2026 22:0312,90521,244,28911,357,00002,117,632
8May 11, 2026 22:0312,93219,960,12611,381,00002,113,536
9May 11, 2026 22:0312,97521,861,50811,418,00002,113,536
10May 11, 2026 22:0313,02920,053,15111,466,00002,113,536
11May 11, 2026 22:0313,03020,897,93511,467,00002,117,632
12May 11, 2026 22:0313,10720,610,67710,444,0001,091,0002,113,536