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 18, 2024 19:49zielajzielajScore: 4,732Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 18, 2024 19:494,70918,450,8822,072,0002,072,0002,473,984
2Dec 18, 2024 19:494,73219,714,0173,123,0001,041,0002,420,736
3Dec 18, 2024 19:494,83419,992,2963,191,0001,063,0002,326,528