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 listMar 25, 2025 18:26wainCGPwainCGPScore: 16,739Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 25, 2025 18:2616,66431,345,26614,664,00002,531,328
2Mar 25, 2025 18:2616,68031,851,26914,678,00002,428,928
3Mar 25, 2025 18:2616,69836,823,79813,645,0001,049,0002,433,024
4Mar 25, 2025 18:2616,72340,007,67614,716,00002,531,328
5Mar 25, 2025 18:2616,73941,685,13014,730,00002,531,328
6Mar 25, 2025 18:2616,76033,028,31414,749,00002,269,184
7Mar 25, 2025 18:2616,80737,206,28414,790,00002,531,328
8Mar 25, 2025 18:2616,84546,406,94314,824,00002,269,184
9Mar 25, 2025 18:2619,078,85916,819,807,99016,787,397,0001,999,0002,269,184