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 listOct 9, 2023 02:53sliceteamsliceteamScore: 7,356,670Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 9, 2023 02:537,337,3776,520,138,8716,456,891,67602,252,800
2Oct 9, 2023 02:537,356,6706,528,519,7476,473,869,94502,252,800
3Oct 9, 2023 02:537,363,9306,543,525,7246,480,258,63102,265,088