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 11, 2026 04:36zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:51M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:51010,456,8591,230,00002,113,536expected "6442459076 ", got "2305422782 "
2May 17, 2026 06:5108,250,2571,018,00002,113,536expected "6442459076 ", got "2305422782 "
3May 17, 2026 06:51011,174,9951,122,00002,113,536expected "6442459076 ", got "2305422782 "
4Feb 11, 2026 04:363,37518,154,3221,980,000990,0002,383,872
5Feb 11, 2026 04:363,42017,065,3292,007,0001,003,0002,387,968
6Feb 11, 2026 04:363,42028,851,3492,007,0001,003,0002,379,776
7Feb 11, 2026 04:363,45122,489,0612,025,0001,012,0002,383,872
8Feb 11, 2026 04:363,45716,480,2601,014,0002,028,0002,387,968
9Feb 11, 2026 04:363,46022,679,8372,030,0001,015,0002,277,376