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 listJul 4, 2021 00:12Vitaliy F.Vitaliy F.Score: 3,681,349Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2021 00:123,663,8193,282,849,1203,224,160,39802,199,552
2Jul 4, 2021 00:123,681,3493,312,349,2393,239,586,98602,199,552
3Jul 4, 2021 00:123,690,8773,314,877,8313,247,971,55002,183,168