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 00:18vahookvahookScore: 3,815Success
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 00:183,77722,000,9252,216,0001,108,0002,494,464
2Feb 4, 2026 00:183,78118,537,4812,218,0001,109,0002,494,464
3Feb 4, 2026 00:183,78822,996,8582,222,0001,111,0002,502,656
4Feb 4, 2026 00:183,79924,756,4272,229,0001,114,0002,277,376
5Feb 4, 2026 00:183,81518,517,6332,238,0001,119,0002,490,368
6Feb 4, 2026 00:183,82216,214,3892,242,0001,121,0002,490,368
7Feb 4, 2026 00:183,82318,372,3802,243,0001,121,0002,277,376
8Feb 4, 2026 00:183,84719,277,4542,257,0001,128,0002,277,376
9Feb 4, 2026 00:183,85619,841,0682,262,0001,131,0002,277,376