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 17, 2025 10:10wainCGPwainCGPScore: 17,842Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 17, 2025 10:1017,80737,015,74914,626,0001,044,0002,285,568
2Mar 17, 2025 10:1017,84242,828,02514,655,0001,046,0002,273,280
3Mar 17, 2025 10:1018,07842,673,39514,915,000994,0002,523,136