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 9, 2026 22:38janwwwjanwwwScore: 3,005Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 9, 2026 22:402,99811,697,1702,639,000020,480
2Nov 9, 2026 22:403,00112,012,3842,641,000020,480
3Nov 9, 2026 22:403,00111,613,3692,641,000020,480
4Nov 9, 2026 22:403,00211,646,4012,642,000020,480
5Nov 9, 2026 22:403,00511,936,3872,645,000020,480
6Nov 9, 2026 22:403,01012,000,3752,649,000020,480
7Nov 9, 2026 22:403,01911,999,6902,657,000020,480
8Nov 9, 2026 22:403,02111,637,2892,659,000020,480
9Nov 9, 2026 22:403,03011,619,8452,667,000020,480