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 6, 2026 01:31vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:04M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:04018,154,7281,186,00002,113,536expected "6442459076 ", got " "
2May 17, 2026 07:04010,160,3491,187,00002,113,536expected "6442459076 ", got " "
3May 17, 2026 07:0408,303,8121,195,00002,113,536expected "6442459076 ", got " "
4Feb 6, 2026 01:303,44118,947,1341,009,0002,019,0002,498,560
5Feb 6, 2026 02:163,45017,510,1211,012,0002,024,0002,490,368
6Feb 6, 2026 01:303,45115,754,8251,012,0002,025,0002,277,376
7Feb 6, 2026 02:163,46820,333,3251,017,0002,035,0002,281,472
8Feb 6, 2026 02:163,47421,519,5181,019,0002,038,0002,281,472
9Feb 6, 2026 01:303,47521,453,4001,019,0002,039,0002,494,464
10Feb 6, 2026 01:313,47820,406,9051,020,0002,041,0002,506,752
11Feb 6, 2026 01:303,48221,777,7171,021,0002,043,0002,502,656
12Feb 6, 2026 01:303,48525,255,0781,022,0002,045,0002,502,656
13Feb 6, 2026 01:313,48818,579,4871,023,0002,046,0002,281,472
14Feb 6, 2026 01:313,48821,398,6201,023,0002,046,0002,498,560
15Feb 6, 2026 01:303,49418,747,7701,025,0002,050,0002,490,368