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 24, 2024 18:31AnSaAnSaScore: 7,339,258Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 24, 2024 18:317,324,9956,506,239,3876,445,995,65702,211,840
2Jan 24, 2024 18:317,339,2586,514,052,8696,458,546,82102,207,744
3Jan 24, 2024 18:317,348,8136,534,793,7966,466,955,56402,215,936