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 6, 2026 07:13Victor MerckléVictor MerckléScore: 9,248Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2026 07:159,13915,528,5678,043,00002,113,536
2Jun 6, 2026 07:159,18615,535,4878,084,00002,113,536
3Jun 6, 2026 07:159,23615,553,4458,128,00002,113,536
4Jun 6, 2026 07:159,24815,528,6848,139,00002,113,536
5Jun 6, 2026 07:159,24815,574,2008,139,00002,113,536
6Jun 6, 2026 07:159,25615,559,3878,146,00002,113,536
7Jun 6, 2026 07:159,27315,585,3698,161,00002,113,536
8Jun 6, 2026 07:159,27315,610,6328,161,00002,113,536
9Jun 6, 2026 07:159,32715,636,7578,208,00002,113,536