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 17, 2025 10:10wainCGPwainCGPError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 14:16M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 14:45011,746,3273,119,00002,117,632expected "6442459076 ", got "4294975429 "
2May 17, 2026 14:45014,122,2883,121,00002,117,632expected "6442459076 ", got "4294975429 "
3May 17, 2026 14:45013,266,1623,196,00002,117,632expected "6442459076 ", got "4294975429 "
4Mar 17, 2025 10:1017,80737,015,74914,626,0001,044,0002,285,568
5Mar 17, 2025 10:1017,84242,828,02514,655,0001,046,0002,273,280
6Mar 17, 2025 10:1018,07842,673,39514,915,000994,0002,523,136