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 listDec 27, 2025 15:26Josu San MartinJosu San MartinScore: 257,491Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2025 15:26256,614248,263,174223,822,0001,998,0002,289,664
2Dec 27, 2025 15:26256,739253,867,547223,931,0001,999,0002,289,664
3Dec 27, 2025 15:26257,182248,159,080225,319,0001,001,0002,359,296
4Dec 27, 2025 15:26257,239247,029,593225,369,0001,001,0002,363,392
5Dec 27, 2025 15:26257,491255,212,481226,592,00002,359,296
6Dec 27, 2025 15:26257,605253,325,255226,692,00002,289,664
7Dec 27, 2025 15:26258,102252,738,894226,130,0001,000,0002,289,664
8Dec 27, 2025 15:26258,539248,878,085226,512,0001,002,0002,363,392
9Dec 27, 2025 15:26259,157255,938,962226,058,0002,000,0002,355,200