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 listJul 17, 2023 17:35Bernard TeoBernard TeoScore: 120,858Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 17, 2023 17:35120,841160,217,792106,340,51602,260,992
2Jul 17, 2023 17:35120,858168,362,039106,354,92102,256,896
3Jul 17, 2023 17:35121,019176,207,915106,496,61602,252,800