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 25, 2023 21:53Yurkov AlekseyYurkov AlekseyScore: 260,234Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 25, 2023 21:53259,874291,707,341228,689,20102,293,760
2Dec 25, 2023 21:53260,234310,645,782229,006,19102,273,280
3Dec 25, 2023 21:53264,320288,908,744232,601,77102,293,760