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 1, 2022 07:53apuxbtapuxbtScore: 31,439Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 07:5331,26751,205,11926,496,0001,019,0002,269,184
2Dec 1, 2022 07:5331,27754,108,94627,524,00002,289,664
3Dec 1, 2022 07:5331,31349,321,47126,535,0001,020,0002,289,664
4Dec 1, 2022 07:5331,38250,764,58126,594,0001,022,0002,289,664
5Dec 1, 2022 07:5331,38249,390,57026,594,0001,022,0002,265,088
6Dec 1, 2022 07:5331,41654,105,56826,623,0001,023,0002,289,664
7Dec 1, 2022 07:5331,43953,718,04326,642,0001,024,0002,273,280
8Dec 1, 2022 07:5331,56959,072,97426,753,0001,028,0002,289,664
9Dec 1, 2022 07:5331,663103,522,26127,863,32202,260,992
10Dec 1, 2022 07:5331,66791,072,91627,866,59802,252,800
11Dec 1, 2022 07:5331,67798,209,63027,875,45102,248,704
12Dec 1, 2022 07:5331,69358,761,90126,894,000996,0002,289,664