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 17:01olliecrowolliecrowScore: 12,303Success
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 17:0212,21132,634,6189,672,0001,074,0002,433,024
2Apr 29, 2026 17:0212,22229,889,1279,681,0001,075,0002,330,624
3Apr 29, 2026 17:0212,24726,117,1429,701,0001,077,0002,326,528
4Apr 29, 2026 17:0212,25527,616,6608,824,0001,961,0002,420,736
5Apr 29, 2026 17:0212,30334,085,9478,859,0001,968,0002,428,928
6Apr 29, 2026 17:0212,30726,748,2488,862,0001,969,0002,428,928
7Apr 29, 2026 17:0212,31728,005,0358,869,0001,970,0002,437,120
8Apr 29, 2026 17:0212,33731,785,0268,883,0001,974,0002,433,024
9Apr 29, 2026 17:0212,42934,395,1127,955,0002,983,0002,437,120