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 18, 2026 00:54M-RochatM-RochatScore: 26,873Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2026 00:5726,73433,705,06422,416,0001,110,0002,113,536
2May 18, 2026 00:5726,76934,495,51022,443,0001,114,0002,113,536
3May 18, 2026 00:5726,80335,303,20122,464,0001,123,0002,113,536
4May 18, 2026 00:5726,85934,712,23622,502,0001,134,0002,113,536
5May 18, 2026 00:5726,87335,262,14322,511,0001,138,0002,113,536
6May 18, 2026 00:5726,91534,993,11522,572,0001,114,0002,113,536
7May 18, 2026 00:5726,97533,838,30922,618,0001,120,0002,113,536
8May 18, 2026 00:5726,98434,233,03722,622,0001,124,0002,113,536
9May 18, 2026 00:5727,07533,431,77122,680,0001,146,0002,113,536