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 5, 2026 16:01vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:14M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:14011,429,6791,188,00002,113,536expected "6442459076 ", got " "
2May 17, 2026 07:14010,229,5841,206,00002,113,536expected "6442459076 ", got " "
3May 17, 2026 07:1409,015,6711,193,00002,113,536expected "6442459076 ", got " "
4Feb 5, 2026 16:013,45117,041,8731,012,0002,025,0002,498,560
5Feb 5, 2026 16:013,45518,018,8021,013,0002,027,0002,498,560
6Feb 5, 2026 16:003,46816,522,1291,017,0002,035,0002,494,464
7Feb 5, 2026 16:013,47218,168,4602,037,0001,018,0002,498,560
8Feb 5, 2026 16:003,47423,751,1191,019,0002,038,0002,490,368
9Feb 5, 2026 16:013,48221,813,4571,021,0002,043,0002,498,560
10Feb 5, 2026 16:013,49115,742,2231,024,0002,048,0002,502,656
11Feb 5, 2026 16:013,50122,801,2241,027,0002,054,0002,494,464
12Feb 5, 2026 16:013,50521,962,6081,028,0002,056,0002,281,472
13Feb 5, 2026 16:003,51617,818,5921,031,0002,063,0002,498,560
14Feb 5, 2026 16:013,51919,138,7141,032,0002,065,0002,494,464
15Feb 5, 2026 16:013,54918,551,6831,041,0002,082,0002,494,464