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 02:19olliecrowolliecrowScore: 12,332Success
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 02:2012,21232,165,6659,673,0001,074,0002,342,912
2Apr 29, 2026 02:2012,27125,309,53710,799,00002,338,816
3Apr 29, 2026 02:2012,28127,022,5939,728,0001,080,0002,338,816
4Apr 29, 2026 02:2012,31024,618,1838,864,0001,969,0002,400,256
5Apr 29, 2026 02:2012,33226,928,7278,880,0001,973,0002,338,816
6Apr 29, 2026 02:2012,33929,339,0918,885,0001,974,0002,330,624
7Apr 29, 2026 02:2012,34628,536,4528,890,0001,975,0002,330,624
8Apr 29, 2026 02:2012,35225,784,9938,894,0001,976,0002,342,912
9Apr 29, 2026 02:2012,46336,440,1628,974,0001,994,0002,330,624