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 26, 2026 05:07olliecrowolliecrowScore: 12,257Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 05:0812,20628,023,6629,668,0001,074,0002,338,816
2Apr 26, 2026 05:0812,21131,667,6579,672,0001,074,0002,318,336
3Apr 26, 2026 05:0812,23131,133,2749,688,0001,076,0002,330,624
4Apr 26, 2026 05:0812,25128,402,2499,703,0001,078,0002,342,912
5Apr 26, 2026 05:0812,25727,425,3739,709,0001,078,0002,334,720
6Apr 26, 2026 05:0812,25925,846,5149,710,0001,078,0002,338,816
7Apr 26, 2026 05:0812,27228,940,1199,720,0001,080,0002,318,336
8Apr 26, 2026 05:0812,37225,536,6738,909,0001,979,0002,330,624
9Apr 26, 2026 05:0813,78833,169,67510,112,0002,022,0002,330,624