Almost primitive elements of free non-associated (anti)commutative algebras of small ranks
Criteria for homogeneous elements to be almost primitive are obtained and algorithms to recognize homogeneous almost primitive elements are constructed for free nonassociative commutative and anticommutative algebras of rank 1 and 2.