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 9, 2026 01:27zielajzielajScore: 3,450Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 9, 2026 01:283,32819,047,2121,953,000976,0002,404,352
2Feb 9, 2026 02:233,33220,701,0061,955,000977,0002,408,448
3Feb 9, 2026 01:283,33625,832,2392,936,00002,404,352
4Feb 9, 2026 01:273,40019,153,9511,995,000997,0002,277,376
5Feb 9, 2026 01:283,40224,483,4921,996,000998,0002,408,448
6Feb 9, 2026 02:003,41023,857,0862,001,0001,000,0002,408,448
7Feb 9, 2026 02:233,43118,401,9792,013,0001,006,0002,531,328
8Feb 9, 2026 02:003,43618,219,2172,016,0001,008,0002,535,424
9Feb 9, 2026 01:193,44021,990,8242,018,0001,009,0002,535,424
10Feb 9, 2026 02:003,44018,694,7782,018,0001,009,0002,400,256
11Feb 9, 2026 01:133,45023,942,6212,024,0001,012,0002,277,376
12Feb 9, 2026 02:233,45122,008,5931,012,0002,025,0002,412,544
13Feb 9, 2026 01:133,45324,144,1202,026,0001,013,0002,277,376
14Feb 9, 2026 02:233,45317,268,8712,026,0001,013,0002,277,376
15Feb 9, 2026 01:133,47018,954,7712,036,0001,018,0002,412,544
16Feb 9, 2026 01:193,47419,270,6691,019,0002,038,0002,486,272
17Feb 9, 2026 01:193,48921,232,0752,047,0001,023,0002,400,256
18Feb 9, 2026 01:273,61518,507,4982,121,0001,060,0002,535,424
19Feb 9, 2026 02:233,76920,225,4163,317,00002,400,256
20Feb 9, 2026 02:233,98921,557,4813,510,00002,510,848
21Feb 9, 2026 01:274,21718,811,5793,711,00002,400,256