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 listFeb 15, 2024 16:20Bernard TeoBernard TeoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 19, 2023 17:1900000Error: expected "51645013291181 ", got "51645013291182 "
2Jul 19, 2023 17:1956,459111,489,74049,683,80402,248,704
3Jul 19, 2023 17:1956,514115,847,04349,732,03302,240,512
4Jul 19, 2023 17:1956,585115,286,90149,794,98502,248,704
5Jul 19, 2023 17:1956,608110,457,80349,815,00302,252,800
6Jul 19, 2023 17:1956,724111,042,28449,917,42002,244,608
7Feb 15, 2024 16:2056,941102,271,08850,108,48902,244,608
8Jul 19, 2023 17:1956,984114,876,10050,146,08302,244,608
9Feb 15, 2024 16:2057,005116,243,79550,164,27002,252,800
10Feb 15, 2024 16:2057,160109,716,66450,300,39202,252,800