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 listNov 11, 2021 08:48Ilya AniskovetsIlya AniskovetsScore: 666,654Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 11, 2021 08:48663,435644,057,221583,822,88002,244,608
2Nov 11, 2021 08:48666,654659,010,785586,655,92102,269,184
3Nov 11, 2021 08:48668,727650,574,344588,480,12002,256,896