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 listSep 25, 2023 23:39IhebIhebError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 25, 2023 23:4300000Error: expected "51432392014023 ", got "51433346746876 "
2Sep 25, 2023 23:39588,537589,596,458517,912,12702,252,800
3Sep 25, 2023 23:39589,379577,064,600518,653,95402,256,896
4Sep 25, 2023 23:39589,686588,679,907518,923,28402,260,992