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 listDec 16, 2024 23:33Mikhail ShirokovMikhail ShirokovScore: 832,716Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 16, 2024 23:32827,838754,439,691726,499,0001,998,0002,277,376
2Dec 16, 2024 23:32831,744755,649,536729,936,0001,999,0002,400,256
3Dec 16, 2024 23:33831,851751,404,760732,029,00002,277,376
4Dec 16, 2024 23:33832,716757,485,652731,791,000999,0002,277,376
5Dec 16, 2024 23:33835,089755,506,403733,879,000999,0002,269,184
6Dec 16, 2024 23:32836,751762,963,124734,343,0001,998,0002,277,376