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 02:23izotoffizotoffScore: 131,038Success
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 02:24130,363147,936,007114,719,00002,445,312
2Nov 6, 2025 02:24130,493143,701,744113,836,000998,0002,326,528
3Nov 6, 2025 02:23130,705144,954,885113,020,0002,000,0002,437,120
4Nov 6, 2025 02:23131,038141,432,663115,313,00002,326,528
5Nov 6, 2025 02:23131,042142,349,131114,315,0001,002,0002,433,024
6Nov 6, 2025 02:24131,242138,723,927115,493,00002,433,024