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 listJan 16, 2026 02:47zielajzielajScore: 3,424Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 16, 2026 02:213,36116,596,0691,972,000986,0002,355,200
2Jan 16, 2026 02:213,38615,983,7121,987,000993,0002,277,376
3Jan 16, 2026 02:453,39218,103,8021,990,000995,0002,363,392
4Jan 16, 2026 02:203,39916,458,2241,994,000997,0002,277,376
5Jan 16, 2026 02:453,40318,062,4831,997,000998,0002,535,424
6Jan 16, 2026 02:453,40722,496,8321,999,000999,0002,363,392
7Jan 16, 2026 02:383,40921,004,7112,000,0001,000,0002,355,200
8Jan 16, 2026 02:473,41417,370,8012,003,0001,001,0002,359,296
9Jan 16, 2026 02:203,41916,616,8321,003,0002,006,0002,351,104
10Jan 16, 2026 02:383,42424,532,8682,009,0001,004,0002,355,200
11Jan 16, 2026 02:203,43319,438,8202,014,0001,007,0002,355,200
12Jan 16, 2026 02:383,43622,160,4791,008,0002,016,0002,359,296
13Jan 16, 2026 02:453,44022,435,8262,018,0001,009,0002,355,200
14Jan 16, 2026 02:473,44122,355,4842,019,0001,009,0002,277,376
15Jan 16, 2026 02:473,44322,850,9352,020,0001,010,0002,355,200
16Jan 16, 2026 02:453,48822,541,5322,046,0001,023,0002,359,296
17Jan 16, 2026 02:213,55920,347,5111,044,0002,088,0002,359,296
18Jan 16, 2026 02:454,31121,681,9423,794,00002,531,328