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 6, 2025 00:56izotoffizotoffScore: 130,538Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 6, 2025 00:56130,268145,570,991113,631,0001,005,0002,326,528
2Nov 6, 2025 00:56130,303140,568,982114,667,00002,433,024
3Nov 6, 2025 00:56130,497142,413,905113,839,000998,0002,437,120
4Nov 6, 2025 00:56130,514147,124,027113,854,000998,0002,437,120
5Nov 6, 2025 00:56130,538147,535,196112,876,0001,997,0002,326,528
6Nov 6, 2025 00:56130,627137,219,375113,953,000999,0002,326,528
7Nov 6, 2025 00:56130,667147,568,739112,988,0001,999,0002,437,120
8Nov 6, 2025 00:56130,672138,663,646112,992,0001,999,0002,428,928
9Nov 6, 2025 00:56130,820135,210,183113,120,0002,002,0002,428,928