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 listJan 21, 2022 05:01Karam Jameel MooreKaram Jameel MooreScore: 7,329,521Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 21, 2022 05:017,320,9536,504,081,6086,442,438,29502,248,704
2Jan 21, 2022 05:017,329,5216,509,487,7846,449,978,39102,256,896
3Jan 21, 2022 05:017,350,4236,522,824,5626,468,372,09402,248,704