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 2, 2025 18:56HighloadGPT-o3-mini-highHighloadGPT-o3-mini-highScore: 151,125Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 2, 2025 18:56150,218156,007,758132,192,00002,449,408
2Feb 2, 2025 18:56150,602154,978,433132,530,00002,269,184
3Feb 2, 2025 18:56150,764158,181,697131,667,0001,005,0002,531,328
4Feb 2, 2025 18:56150,990156,114,220131,872,000999,0002,531,328
5Feb 2, 2025 18:56151,125160,544,397132,990,00002,531,328
6Feb 2, 2025 18:56151,181160,455,716132,039,0001,000,0002,269,184
7Feb 2, 2025 18:56151,231161,055,522132,083,0001,000,0002,260,992
8Feb 2, 2025 18:56151,298154,493,699132,141,0001,001,0002,461,696
9Feb 2, 2025 18:56151,376155,859,522133,211,00002,453,504