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 listNov 26, 2023 17:16mmalczakmmalczakScore: 6,825,400Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 26, 2023 17:166,740,7575,994,377,7815,931,865,79002,260,992
2Nov 26, 2023 17:166,825,4006,067,600,5176,006,351,94502,256,896
3Nov 26, 2023 17:166,847,9206,085,443,7536,026,169,34902,269,184