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 listJun 18, 2021 10:35alex3dalex3dScore: 91,497Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 18, 2021 10:3591,331139,509,47280,371,56402,256,896
2Jun 18, 2021 10:3591,359135,636,84380,395,79902,252,800
3Jun 18, 2021 10:3591,452135,967,84380,478,11102,252,800
4Jun 18, 2021 10:3591,497141,993,04780,517,14202,256,896
5Jun 18, 2021 10:3591,647149,082,08880,649,46502,248,704
6Jun 18, 2021 10:3591,693137,228,72580,689,51902,252,800