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 listFeb 21, 2025 14:53wainCGPwainCGPScore: 1,591,386Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 21, 2025 14:531,591,0441,430,957,2101,397,119,0003,000,0002,424,832
2Feb 21, 2025 14:531,591,3861,424,733,9951,395,423,0004,997,0002,424,832
3Feb 21, 2025 14:531,599,1831,431,004,1141,402,284,0004,997,0002,281,472