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 listApr 27, 2026 10:08Pavel SkripkinPavel SkripkinScore: 40,881Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2026 10:0940,78449,782,51833,897,0001,993,0002,428,928
2Apr 27, 2026 10:0940,82949,121,96233,934,0001,996,0002,424,832
3Apr 27, 2026 10:0940,84053,370,47233,944,0001,996,0002,330,624
4Apr 27, 2026 10:0940,86151,520,76033,961,0001,997,0002,334,720
5Apr 27, 2026 10:0940,88154,221,28833,978,0001,998,0002,420,736
6Apr 27, 2026 10:0940,96853,558,14635,022,0001,030,0002,424,832
7Apr 27, 2026 10:0941,03452,754,39735,107,0001,003,0002,424,832
8Apr 27, 2026 10:0941,07955,899,70035,146,0001,004,0002,428,928
9Apr 27, 2026 10:0941,13552,331,01434,188,0002,011,0002,428,928