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 01:03izotoffizotoffScore: 130,251Success
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 01:03129,714138,090,736112,146,0002,002,0002,437,120
2Nov 6, 2025 01:03130,032136,666,423112,421,0002,007,0002,326,528
3Nov 6, 2025 01:03130,218147,002,110113,587,0001,005,0002,531,328
4Nov 6, 2025 01:03130,225135,310,474114,598,00002,437,120
5Nov 6, 2025 01:03130,251146,291,605114,621,00002,326,528
6Nov 6, 2025 01:03130,463140,845,323113,809,000998,0002,326,528
7Nov 6, 2025 01:03130,514141,594,344113,854,000998,0002,433,024
8Nov 6, 2025 01:03130,628138,242,822113,954,000999,0002,326,528
9Nov 6, 2025 01:03130,693146,535,034113,010,0002,000,0002,326,528