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:03Johan SannemoJohan SannemoScore: 10,994Success
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:0010,91024,358,6858,535,0001,066,0002,285,568
2Jan 20, 2026 14:0010,93127,022,3848,551,0001,068,0002,285,568
3Jan 20, 2026 14:0310,94127,018,7308,559,0001,069,0002,285,568
4Jan 20, 2026 14:0010,94425,186,8287,491,0002,140,0002,494,464
5Jan 20, 2026 14:0010,98929,883,1088,596,0001,074,0002,285,568
6Jan 20, 2026 14:0310,99125,178,8148,598,0001,074,0002,289,664
7Jan 20, 2026 14:0010,99429,436,3808,600,0001,075,0002,285,568
8Jan 20, 2026 14:0310,99426,625,0757,525,0002,150,0002,506,752
9Jan 20, 2026 14:0011,00825,707,8168,611,0001,076,0002,289,664
10Jan 20, 2026 14:0011,05725,771,1548,649,0001,081,0002,494,464
11Jan 20, 2026 14:0011,06034,078,5358,652,0001,081,0002,285,568
12Jan 20, 2026 14:0311,06327,983,7608,654,0001,081,0002,289,664
13Jan 20, 2026 14:0311,07029,314,7669,742,00002,473,984
14Jan 20, 2026 14:0311,09132,089,3508,676,0001,084,0002,289,664
15Jan 20, 2026 14:0011,13230,011,4279,796,00002,289,664