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 listJan 17, 2026 06:44Josu San MartinJosu San MartinScore: 35,705Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 06:4435,57656,654,53831,307,00002,445,312
2Jan 17, 2026 06:4035,68850,952,88530,392,0001,013,0002,363,392
3Jan 17, 2026 06:4035,70552,996,55230,407,0001,013,0002,514,944
4Jan 17, 2026 06:4035,70553,843,30630,407,0001,013,0002,457,600
5Jan 17, 2026 06:4435,72554,710,37530,424,0001,014,0002,445,312
6Jan 17, 2026 06:4435,78254,985,59830,473,0001,015,0002,453,504