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 listDec 25, 2021 05:05Alexander KimAlexander KimScore: 18,003,923Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 25, 2021 05:0517,963,86115,875,980,36215,808,197,44502,215,936
2Dec 25, 2021 05:0518,003,92315,899,649,49115,843,451,97302,220,032
3Dec 25, 2021 05:0518,197,73316,093,093,26816,014,004,67202,252,800