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 12:46Sergey StreminSergey StreminError
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 12:4700000Error: expected "51099218562857 ", got "51099218562846 "
2Jun 18, 2021 12:4896,822158,493,29585,203,36302,240,512
3Jun 18, 2021 12:4696,903145,293,42085,274,63802,248,704
4Jun 18, 2021 12:4897,090157,285,95085,439,18302,236,416
5Jun 18, 2021 12:4897,168146,333,50385,507,41702,248,704
6Jun 18, 2021 12:4697,180147,123,73185,518,55302,252,800
7Jun 18, 2021 12:4697,534144,638,47685,830,21802,244,608