Ferrite is the wrong thing for an electromaget, you want iron.
I played with them when I was about 12. I would get basically really weak things, until I wrapped about 50 turns of house wiring (probably 14ga) around a piece of rebar and powered it by 2 D cells. It was quite powerful. The...