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 listApr 22, 2024 23:08Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2024 23:1400000Error: expected "50957896655318 ", got "50959751595549 "
2Apr 22, 2024 23:0856,327102,484,81749,567,34502,248,704
3Apr 22, 2024 23:0856,571110,335,98649,782,50502,252,800
4Apr 22, 2024 23:1556,661107,128,07149,861,51802,265,088
5Apr 22, 2024 23:0856,698116,261,80749,894,38702,260,992
6Apr 22, 2024 23:1556,789115,322,57449,974,61302,260,992
7Apr 22, 2024 23:1556,925107,016,02850,093,87402,265,088