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 6, 2024 18:06E SequeiraE SequeiraScore: 19,154,515Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 6, 2024 18:0619,088,46116,827,849,14816,795,847,0001,999,0002,326,528
2Dec 6, 2024 18:0619,154,51516,889,765,95416,853,974,0001,999,0002,326,528
3Dec 6, 2024 18:0619,195,63916,922,742,93516,891,163,000999,0002,322,432