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 listMay 23, 2024 19:27CemaCemaScore: 7,312,354Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 23, 2024 19:277,306,7436,490,564,0596,429,933,76902,248,704
2May 23, 2024 19:277,312,3546,496,195,7426,434,871,09602,248,704
3May 23, 2024 19:277,357,1336,550,760,7306,474,277,16502,240,512