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 listApr 14, 2026 12:25limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 21:07Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 21:12024,657,67312,344,0001,222,0002,113,536expected "40338089262335 ", got "14681413578388"
2Oct 5, 2026 21:12030,597,62518,323,0001,262,0002,113,536expected "20561932592786 ", got "8036493545842"
3Oct 5, 2026 21:12030,645,61718,962,0001,167,0002,113,536expected "20541920038576 ", got "7683176662294"
4Apr 14, 2026 12:2521,54044,331,98617,958,000997,0002,367,488
5Apr 14, 2026 12:2521,58940,868,68216,999,0001,999,0002,424,832
6Apr 14, 2026 12:2521,59241,651,01717,001,0002,000,0002,277,376
7Apr 14, 2026 12:2521,59834,970,37617,006,0002,000,0002,445,312
8Apr 14, 2026 12:2521,61743,578,78317,021,0002,002,0002,494,464
9Apr 14, 2026 12:2522,22442,013,35718,528,0001,029,0002,363,392
10Apr 14, 2026 12:2522,24744,117,86418,547,0001,030,0002,441,216
11Apr 14, 2026 12:2522,25241,027,82818,552,0001,030,0002,363,392
12Apr 14, 2026 12:2522,31549,538,52717,570,0002,067,0002,437,120