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 5, 2026 16:01vahookvahookScore: 3,491Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 5, 2026 16:013,45117,041,8731,012,0002,025,0002,498,560
2Feb 5, 2026 16:013,45518,018,8021,013,0002,027,0002,498,560
3Feb 5, 2026 16:003,46816,522,1291,017,0002,035,0002,494,464
4Feb 5, 2026 16:013,47218,168,4602,037,0001,018,0002,498,560
5Feb 5, 2026 16:003,47423,751,1191,019,0002,038,0002,490,368
6Feb 5, 2026 16:013,48221,813,4571,021,0002,043,0002,498,560
7Feb 5, 2026 16:013,49115,742,2231,024,0002,048,0002,502,656
8Feb 5, 2026 16:013,50122,801,2241,027,0002,054,0002,494,464
9Feb 5, 2026 16:013,50521,962,6081,028,0002,056,0002,281,472
10Feb 5, 2026 16:003,51617,818,5921,031,0002,063,0002,498,560
11Feb 5, 2026 16:013,51919,138,7141,032,0002,065,0002,494,464
12Feb 5, 2026 16:013,54918,551,6831,041,0002,082,0002,494,464