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 listJun 27, 2026 05:11Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 23:02Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 00:310169,579,248161,145,00002,113,536expected "24714146868971 ", got "21920140302386 "
2Sep 5, 2026 00:310159,411,537151,035,00002,113,536expected "28824601513814 ", got "24624531332183 "
3Sep 5, 2026 00:310150,912,813142,641,00002,113,536expected "29627135800893 ", got "26356579534186 "
4Jun 27, 2026 05:135,11812,134,4274,504,00002,113,536
5Jun 27, 2026 05:135,12912,159,5714,514,00002,113,536
6Jun 27, 2026 05:135,13912,164,8814,523,00002,113,536
7Jun 27, 2026 05:135,16112,241,5624,542,00002,113,536
8Jun 27, 2026 05:135,25512,374,5524,625,00002,113,536
9Jun 27, 2026 05:135,25612,211,4284,626,00002,113,536
10Jun 27, 2026 05:135,26012,017,2734,629,00002,113,536
11Jun 27, 2026 05:135,26912,204,1224,637,00002,113,536
12Jun 27, 2026 05:135,28513,685,4294,651,00002,113,536