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 listJun 27, 2026 15:00Victor MerckléVictor MerckléScore: 6,479Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 15:066,31414,637,9034,249,0001,308,0002,134,016
2Jun 27, 2026 15:066,43014,707,8884,239,0001,420,0002,134,016
3Jun 27, 2026 15:066,44714,598,4444,319,0001,355,0002,134,016
4Jun 27, 2026 15:066,47614,929,7834,378,0001,321,0002,134,016
5Jun 27, 2026 15:066,47914,828,0354,234,0001,468,0002,134,016
6Jun 27, 2026 15:066,49014,686,3414,233,0001,479,0002,134,016
7Jun 27, 2026 15:066,51314,770,3084,234,0001,498,0002,134,016
8Jun 27, 2026 15:066,56714,832,2144,316,0001,463,0002,179,072
9Jun 27, 2026 15:066,58014,832,5354,287,0001,504,0002,134,016