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 listFeb 22, 2025 09:24wainCGPwainCGPScore: 135,439Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2025 09:24135,026142,316,327114,829,0003,994,0002,482,176
2Feb 22, 2025 09:24135,047153,338,548114,847,0003,994,0002,482,176
3Feb 22, 2025 09:24135,435142,401,088115,177,0004,006,0002,465,792
4Feb 22, 2025 09:24135,439141,627,964113,177,0006,009,0002,408,448
5Feb 22, 2025 09:24135,439140,572,071115,180,0004,006,0002,498,560
6Feb 22, 2025 09:24135,515146,975,872115,245,0004,008,0002,473,984
7Feb 22, 2025 09:24135,527148,417,371115,256,0004,008,0002,469,888
8Feb 22, 2025 09:24135,843145,665,547114,520,0005,022,0002,494,464
9Feb 22, 2025 09:24135,845144,199,867114,522,0005,022,0002,478,080