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 listMar 8, 2025 05:05wainCGPwainCGPScore: 18,758Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 8, 2025 05:0518,64353,031,22414,356,0002,050,0002,289,664
2Mar 8, 2025 05:0518,75836,305,86615,476,0001,031,0002,277,376
3Mar 8, 2025 05:0518,86839,763,36115,567,0001,037,0002,289,664