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 8, 2025 01:51izotoffizotoffScore: 104,847Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 8, 2025 01:51104,769115,800,91191,195,0001,002,0002,326,528
2Nov 8, 2025 01:51104,847115,507,69392,265,00002,326,528
3Nov 8, 2025 01:51104,890117,147,51891,300,0001,003,0002,306,048