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 7, 2026 17:19b pb pScore: 933,420Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 7, 2026 17:19926,791842,620,757809,580,0005,996,0002,428,928
2Apr 7, 2026 17:19928,338845,741,765812,938,0003,999,0002,404,352
3Apr 7, 2026 17:19929,434847,735,180813,903,0003,999,0002,428,928
4Apr 7, 2026 17:19933,285846,726,499815,289,0006,002,0002,285,568
5Apr 7, 2026 17:19933,420847,570,873818,413,0002,997,0002,285,568
6Apr 7, 2026 17:19933,484848,260,344814,471,0006,995,0002,457,600
7Apr 7, 2026 17:19933,499848,254,110815,483,0005,996,0002,510,848
8Apr 7, 2026 17:19936,432846,691,641820,060,0004,000,0002,285,568
9Apr 7, 2026 17:19936,493851,469,656818,114,0006,000,0002,293,760