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:338QTK8QTKScore: 107,801Success
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:33107,332115,939,36292,443,0002,009,0002,461,696
2Jan 24, 2025 07:33107,801122,605,74991,870,0002,995,0002,273,280
3Jan 24, 2025 07:33107,815124,094,62990,883,0003,994,0002,289,664