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 11:21Sergey StreminSergey StreminScore: 220,489Success
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 11:27220,264246,661,384193,832,71202,240,512
2Jun 18, 2021 11:21220,286246,988,356193,851,39202,248,704
3Jun 18, 2021 11:27220,316257,503,122193,877,72902,248,704
4Jun 18, 2021 11:21220,489255,782,322194,030,28602,252,800
5Jun 18, 2021 11:21220,524250,372,124194,061,31302,240,512
6Jun 18, 2021 11:27220,554265,854,477194,087,20102,248,704