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 listMay 19, 2026 09:10Josu San MartinJosu San MartinScore: 12,312Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2026 09:1312,26820,032,5319,764,0001,032,0002,113,536
2May 19, 2026 09:1312,27222,422,5479,758,0001,042,0002,113,536
3May 19, 2026 09:1312,29020,601,8619,775,0001,041,0002,117,632
4May 19, 2026 09:1312,31121,376,9599,802,0001,032,0002,117,632
5May 19, 2026 09:1312,31221,755,4499,785,0001,050,0002,113,536
6May 19, 2026 09:1312,32022,405,2279,813,0001,029,0002,113,536
7May 19, 2026 09:1312,32822,621,5279,798,0001,051,0002,113,536
8May 19, 2026 09:1312,44821,880,5229,829,0001,126,0002,113,536
9May 19, 2026 09:1312,48120,187,3049,871,0001,113,0002,113,536