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 03:03izotoffizotoffScore: 93,452Success
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 03:0393,185107,529,81680,003,0002,000,0002,437,120
2Nov 6, 2025 03:0393,220114,667,53081,034,0001,000,0002,326,528
3Nov 6, 2025 03:0393,259112,253,34581,068,0001,000,0002,326,528
4Nov 6, 2025 03:0393,343111,723,40381,141,0001,001,0002,326,528
5Nov 6, 2025 03:0393,452112,540,97980,233,0002,005,0002,326,528
6Nov 6, 2025 03:0393,675109,783,63382,434,00002,437,120
7Nov 6, 2025 03:0393,745104,610,39082,496,00002,326,528
8Nov 6, 2025 03:0393,884110,634,26882,618,00002,326,528
9Nov 6, 2025 03:0394,284107,483,01180,971,0001,999,0002,326,528