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 4, 2026 01:52vahookvahookScore: 3,765Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 01:523,73321,116,8042,190,0001,095,0002,494,464
2Feb 4, 2026 01:523,74717,086,3982,198,0001,099,0002,494,464
3Feb 4, 2026 01:523,75722,023,1032,204,0001,102,0002,498,560
4Feb 4, 2026 01:523,76118,781,0662,207,0001,103,0002,498,560
5Feb 4, 2026 01:523,76520,890,1992,209,0001,104,0002,494,464
6Feb 4, 2026 01:523,76718,667,8272,210,0001,105,0002,502,656
7Feb 4, 2026 01:523,77221,966,9362,213,0001,106,0002,494,464
8Feb 4, 2026 01:523,77723,913,6782,216,0001,108,0002,277,376
9Feb 4, 2026 01:523,78521,446,3492,221,0001,110,0002,277,376