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 listNov 17, 2025 05:35mgildermgilderScore: 296,693Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 17, 2025 05:35296,552284,770,860259,967,000999,0002,285,568
2Nov 17, 2025 05:35296,693283,882,170259,090,0002,000,0002,367,488
3Nov 17, 2025 05:35298,547289,248,937260,724,0001,997,0002,363,392