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:05Pavel SkripkinPavel SkripkinScore: 51,050Success
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:0650,68862,096,48243,593,0001,013,0002,330,624
2Apr 27, 2026 10:0650,90557,705,94042,806,0001,991,0002,330,624
3Apr 27, 2026 10:0651,00365,989,38642,889,0001,994,0002,424,832
4Apr 27, 2026 10:0651,00963,232,85442,893,0001,995,0002,420,736
5Apr 27, 2026 10:0651,05062,343,90242,928,0001,996,0002,494,464
6Apr 27, 2026 10:0651,06160,465,57042,937,0001,997,0002,424,832
7Apr 27, 2026 10:0651,06265,015,88143,937,000998,0002,334,720
8Apr 27, 2026 10:0651,07262,332,35742,947,0001,997,0002,437,120
9Apr 27, 2026 10:0651,25364,447,50343,099,0002,004,0002,420,736