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 6, 2026 01:18Sergey SerebryakovSergey SerebryakovScore: 8,410Success
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Apr 24, 2026 17:52Victor Mercklé118.91CustomSolution Held
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 6, 2026 01:188,28624,705,6734,167,0003,125,0002,285,568
2Mar 6, 2026 01:188,29924,750,2184,173,0003,130,0002,285,568
3Mar 6, 2026 01:188,32526,798,5095,233,0002,093,0002,289,664
4Mar 6, 2026 01:188,33023,247,4627,330,00002,514,944
5Mar 6, 2026 01:188,41022,619,0796,344,0001,057,0002,510,848
6Mar 6, 2026 01:188,49322,114,1516,407,0001,067,0002,285,568
7Mar 6, 2026 01:188,55329,874,2676,452,0001,075,0002,514,944
8Mar 6, 2026 01:188,56426,319,7356,460,0001,076,0002,285,568
9Mar 6, 2026 01:188,57023,066,8427,542,00002,514,944