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 6, 2026 01:31vahookvahookScore: 3,478Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 01:303,44118,947,1341,009,0002,019,0002,498,560
2Feb 6, 2026 02:163,45017,510,1211,012,0002,024,0002,490,368
3Feb 6, 2026 01:303,45115,754,8251,012,0002,025,0002,277,376
4Feb 6, 2026 02:163,46820,333,3251,017,0002,035,0002,281,472
5Feb 6, 2026 02:163,47421,519,5181,019,0002,038,0002,281,472
6Feb 6, 2026 01:303,47521,453,4001,019,0002,039,0002,494,464
7Feb 6, 2026 01:313,47820,406,9051,020,0002,041,0002,506,752
8Feb 6, 2026 01:303,48221,777,7171,021,0002,043,0002,502,656
9Feb 6, 2026 01:303,48525,255,0781,022,0002,045,0002,502,656
10Feb 6, 2026 01:313,48818,579,4871,023,0002,046,0002,281,472
11Feb 6, 2026 01:313,48821,398,6201,023,0002,046,0002,498,560
12Feb 6, 2026 01:303,49418,747,7701,025,0002,050,0002,490,368