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 listDec 27, 2025 19:10Josu San MartinJosu San MartinScore: 58,120Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2025 19:1057,93876,596,96448,986,0001,999,0002,367,488
2Dec 27, 2025 19:1057,94377,764,10748,991,0001,999,0002,371,584
3Dec 27, 2025 19:1058,00076,652,56350,040,0001,000,0002,289,664
4Dec 27, 2025 19:1058,10174,128,27450,127,0001,002,0002,289,664
5Dec 27, 2025 19:1058,12078,839,06349,141,0002,005,0002,289,664
6Dec 27, 2025 19:1058,14573,257,85850,165,0001,003,0002,371,584
7Dec 27, 2025 19:1058,15773,872,68450,175,0001,003,0002,289,664
8Dec 27, 2025 19:1058,26876,725,15350,271,0001,005,0002,359,296
9Dec 27, 2025 19:1058,43474,170,94651,422,00002,289,664