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 listSep 3, 2024 16:36AnSaAnSaScore: 212,881Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 3, 2024 16:36212,484212,518,568185,987,000999,0002,371,584
2Sep 3, 2024 16:36212,881215,876,064186,334,0001,001,0002,383,872
3Sep 3, 2024 16:36213,419215,809,463185,812,0001,997,0002,375,680