Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 150625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:19:13+00:00 2026-05-11T09:19:13+00:00

Since many of the Project Euler problems require you to do a divisibility check

  • 0

Since many of the Project Euler problems require you to do a divisibility check for quite a number of times, I’ve been trying to figure out the fastest way to perform this task in ZX81 BASIC.

So far I’ve compared (N/D) to INT(N/D) to check, whether N is dividable by D or not.
I have been thinking about doing the test in Z80 machine code, I haven’t yet figured out how to use the variables in the BASIC in the machine code.

How can it be achieved?

  • 1 1 Answer
  • 4 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:19:13+00:00Added an answer on May 11, 2026 at 9:19 am

    Don’t know if RANDOMIZE USR is available in ZX81 but I think it can be used to call routines in assembly. To pass arguments you might need to use POKE to set some fixed memory locations before executing RANDOMIZE USR.

    I remember to find a list of routines implemented in the ROM to support the ZX Basic. I’m sure there are a few to perform floating operation.

    An alternative to floating point is to use fixed point math. It’s a lot faster in these kind of situations where there is no math coprocessor.

    You also might find more information in Sinclair User issues. They published some articles related to programming in the ZX Spectrum

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to use a many to many relationship in my project and since
If there have been commits and many changes since an earlier commit, is there
Since Flash 10 was introduced, many of the popular 'copy to clipboard' scripts out
Since I have been writing a big python program for my project. I have
I am trying to do problem 254 in project euler and arrived at this
This is the problem am facing since many days. am trying to manage that
I'm programming a project with plugin support. Since many of the plugins are relatively
I know there are many bug tracking/project management programs out there. For my main
Since many years a GUI-standard are the menu-bars of applications with menus popping up,
Edit Since there were many downvotes and people who didn't understand what I'm asking

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.