English

Counting Square-Free Numbers

Number Theory 2011-07-26 v1 Data Structures and Algorithms

Abstract

The main topic of this contribution is the problem of counting square-free numbers not exceeding nn. Before this work we were able to do it in time (Comparing to the Big-O notation, Soft-O (\softO\softO) ignores logarithmic factors) \softO(n)\softO(\sqrt{n}). Here, the algorithm with time complexity \softO(n2/5)\softO(n^{2/5}) and with memory complexity \softO(n1/5)\softO(n^{1/5}) is presented. Additionally, a parallel version is shown, which achieves full scalability. As of now the highest computed value was for n=1017n=10^{17}. Using our implementation we were able to calculate the value for n=1036n=10^{36} on a cluster.

Cite

@article{arxiv.1107.4890,
  title  = {Counting Square-Free Numbers},
  author = {Jakub Pawlewicz},
  journal= {arXiv preprint arXiv:1107.4890},
  year   = {2011}
}
R2 v1 2026-06-21T18:41:25.638Z