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 3, 2025 04:50wainCGPwainCGPScore: 25,293Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 3, 2025 04:5025,17747,080,23720,142,0002,014,0002,277,376
2Mar 3, 2025 04:5025,29344,535,36120,235,0002,023,0002,375,680
3Mar 3, 2025 04:5025,35540,730,54920,284,0002,028,0002,269,184