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 11, 2025 18:54KeefeKeefeScore: 91,372Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 11, 2025 18:5491,031102,698,50678,105,0002,002,0002,277,376
2May 11, 2025 18:5491,372106,286,08579,402,0001,005,0002,285,568
3May 11, 2025 18:5491,648106,416,21479,642,0001,008,0002,277,376