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 08:21alex3dalex3dScore: 7,374,401Success
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 08:217,321,9906,507,537,3826,443,350,95302,260,992
2Jun 18, 2021 08:217,374,4016,564,725,5146,489,472,76402,252,800
3Jun 18, 2021 08:217,378,0106,553,980,3226,492,649,15502,248,704