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 listApr 30, 2025 12:40KeefeKeefeScore: 8,143,651Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2025 12:408,128,5527,187,084,8157,110,174,00042,952,0002,281,472
2Apr 30, 2025 12:408,143,6517,199,612,7767,123,459,00042,954,0002,285,568
3Apr 30, 2025 12:408,251,3257,298,343,8597,213,218,00047,948,0002,281,472