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 29, 2026 07:47olliecrowolliecrowScore: 12,320Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 07:4812,23930,283,9849,694,0001,077,0002,330,624
2Apr 29, 2026 07:4812,24226,659,7989,696,0001,077,0002,334,720
3Apr 29, 2026 07:4812,25128,912,6818,821,0001,960,0002,342,912
4Apr 29, 2026 07:4812,25633,288,7409,708,0001,078,0002,326,528
5Apr 29, 2026 07:4812,32030,858,8508,871,0001,971,0002,338,816
6Apr 29, 2026 07:4812,34531,043,1758,889,0001,975,0002,338,816
7Apr 29, 2026 07:4812,36327,916,7758,902,0001,978,0002,338,816
8Apr 29, 2026 07:4812,36526,172,7168,904,0001,978,0002,326,528
9Apr 29, 2026 07:4812,37131,627,2038,908,0001,979,0002,342,912