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 listJul 20, 2023 10:35matsuoka-601matsuoka-601Score: 51,473Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 10:3551,17767,699,34941,033,0004,003,0002,281,472
2Jul 20, 2023 10:3551,38174,775,79941,196,0004,019,0002,465,792
3Jul 20, 2023 10:3551,39565,778,74341,208,0004,020,0002,289,664
4Jul 20, 2023 10:3551,45265,898,22141,254,0004,024,0002,289,664
5Jul 20, 2023 10:3551,45767,672,44841,257,0004,025,0002,375,680
6Jul 20, 2023 10:3551,46369,998,45341,262,0004,025,0002,449,408
7Jul 20, 2023 10:3551,47371,735,33441,270,0004,026,0002,289,664
8Jul 20, 2023 10:3551,57066,136,96642,357,0003,025,0002,473,984
9Jul 20, 2023 10:3551,64369,281,39741,407,0004,039,0002,289,664
10Jul 20, 2023 10:3551,682114,027,91645,479,95602,187,264
11Jul 20, 2023 10:3551,724105,201,32545,517,07402,195,456
12Jul 20, 2023 10:3551,739100,032,75245,530,19102,195,456