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 18, 2026 22:39Victor MerckléVictor MerckléScore: 29,439Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 22:3929,18451,484,29523,628,0002,054,0002,281,472
2Apr 18, 2026 22:3929,37743,271,50323,864,0001,988,0002,498,560
3Apr 18, 2026 22:3929,41752,397,49423,896,0001,991,0002,281,472
4Apr 18, 2026 22:3929,43455,252,73923,910,0001,992,0002,281,472
5Apr 18, 2026 22:3929,43953,639,95322,917,0002,989,0002,494,464
6Apr 18, 2026 22:3929,44453,291,68423,918,0001,993,0002,281,472
7Apr 18, 2026 22:3929,46949,316,28323,939,0001,994,0002,281,472
8Apr 18, 2026 22:3929,49049,693,93523,955,0001,996,0002,498,560
9Apr 18, 2026 22:3929,58848,338,73925,036,0001,001,0002,281,472