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 listJan 24, 2025 07:138QTK8QTKScore: 34,222Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 24, 2025 07:1334,04954,625,34225,968,0003,995,0002,289,664
2Jan 24, 2025 07:1334,22252,841,76226,100,0004,015,0002,289,664
3Jan 24, 2025 07:1334,36750,664,31427,219,0003,024,0002,461,696