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 listNov 7, 2025 17:34izotoffizotoffScore: 91,744Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 7, 2025 17:3491,353100,369,11479,387,0001,004,0002,326,528
2Nov 7, 2025 17:3491,427103,547,19580,456,00002,285,568
3Nov 7, 2025 17:3491,551101,224,60079,558,0001,007,0002,326,528
4Nov 7, 2025 17:3491,720113,124,82979,706,0001,008,0002,326,528
5Nov 7, 2025 17:3491,744108,456,57279,726,0001,009,0002,326,528
6Nov 7, 2025 17:3491,839105,436,89877,825,0002,993,0002,285,568
7Nov 7, 2025 17:3491,870108,259,23980,846,00002,326,528
8Nov 7, 2025 17:3491,890111,732,53278,867,0001,996,0002,297,856
9Nov 7, 2025 17:3491,911104,872,43279,884,000998,0002,326,528