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 listMay 7, 2024 09:53dpetruciidpetruciiScore: 7,380,933Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2024 09:537,321,3746,501,368,2696,442,808,83202,248,704
2May 7, 2024 09:537,380,9336,558,960,3106,495,221,42402,248,704
3May 7, 2024 09:537,423,3396,604,307,1476,532,538,09102,265,088