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 listApr 25, 2026 03:05olliecrowolliecrowScore: 12,677Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 03:0612,60125,425,9749,073,0002,016,0002,301,952
2Apr 25, 2026 03:0612,61327,440,0199,082,0002,018,0002,310,144
3Apr 25, 2026 03:0612,61732,792,2038,075,0003,028,0002,519,040
4Apr 25, 2026 03:0612,61726,226,9039,085,0002,018,0002,310,144
5Apr 25, 2026 03:0612,67724,500,4639,128,0002,028,0002,400,256
6Apr 25, 2026 03:0612,69025,841,0969,138,0002,030,0002,297,856
7Apr 25, 2026 03:0612,69428,327,53710,156,0001,015,0002,306,048
8Apr 25, 2026 03:0612,69725,867,1929,143,0002,031,0002,564,096
9Apr 25, 2026 03:0612,80732,903,71510,247,0001,024,0002,383,872