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 20, 2026 14:02Johan SannemoJohan SannemoScore: 11,018Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 14:0110,88927,761,4708,518,0001,064,0002,285,568
2Jan 20, 2026 14:0110,94128,478,6958,559,0001,069,0002,342,912
3Jan 20, 2026 14:0110,95032,364,6348,566,0001,070,0002,490,368
4Jan 20, 2026 14:0210,95131,563,8728,567,0001,070,0002,285,568
5Jan 20, 2026 14:0210,96031,441,8667,502,0002,143,0002,498,560
6Jan 20, 2026 14:0110,97526,703,2879,658,00002,494,464
7Jan 20, 2026 14:0210,99532,778,0928,601,0001,075,0002,285,568
8Jan 20, 2026 14:0210,99727,858,7558,602,0001,075,0002,486,272
9Jan 20, 2026 14:0111,00631,950,2927,533,0002,152,0002,506,752
10Jan 20, 2026 14:0111,01330,975,2928,615,0001,076,0002,285,568
11Jan 20, 2026 14:0111,01828,490,3377,542,0002,154,0002,494,464
12Jan 20, 2026 14:0211,08426,925,2508,671,0001,083,0002,494,464
13Jan 20, 2026 14:0211,08430,063,2027,587,0002,167,0002,285,568
14Jan 20, 2026 14:0111,10226,814,8357,599,0002,171,0002,285,568
15Jan 20, 2026 14:0211,10328,651,7158,686,0001,085,0002,486,272
16Jan 20, 2026 14:0211,11926,400,2297,611,0002,174,0002,490,368
17Jan 20, 2026 14:0211,21624,612,4438,883,000987,0002,498,560
18Jan 20, 2026 14:0211,23025,760,9818,894,000988,0002,285,568
19Jan 20, 2026 14:0111,26126,881,1388,919,000991,0002,289,664
20Jan 20, 2026 14:0211,26528,526,9067,931,0001,982,0002,289,664
21Jan 20, 2026 14:0211,28523,476,4717,945,0001,986,0002,289,664